/*
Theme Name: Grason Properties Theme
Author: Jeromy Condon
Description: Custom Property Management Theme
Version: 1.0
*/

/*
==================================================================================
Reset Styles
*/

*,*::before,*::after{box-sizing:border-box}*{min-width:0}[hidden]{display:none!important}@media (prefers-reduced-motion:no-preference){html{interpolate-size:allow-keywords}}html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-gutter:stable;overscroll-behavior:contain}body{min-height:100vh;min-height:100svh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:always;text-rendering:optimizeLegibility;line-height:1.5}h1,h2,h3,h4,h5,h6{margin-top:0;line-height:1.1;text-wrap:balance;font-size:inherit;font-weight:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}img,picture,video,canvas,svg,embed,object,audio{display:block;max-width:100%;height:auto}svg[width][height]{max-width:revert}button{background:none;border:none}input,button,textarea,select{font:inherit;-webkit-appearance:none;appearance:none}button,[role="button"],label,summary,select{cursor:pointer}a{color:inherit}table{border-collapse:collapse}th{font-weight:inherit}fieldset{border:none;padding:0}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-family:monospace;font-size:inherit}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:none}#root{isolation:isolate}

/*
==================================================================================
Sitewide Styles
*/
:root {
  /* Font Family & Base Metrics */
  --font-sans: 'Lato', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --line-height-heading: 1.2;
  --line-height-body: 1.5;
  --heading-color: #333;

  /* Typographic Scale (Fluid using clamp) */
  /* Formula: clamp(min-size, fluid-preferred-size, max-size) */
  --font-size-h1: clamp(2.25rem, 1.65rem + 2.5vw, 3.5rem);   /* 36px -> 56px */
  --font-size-h2: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);    /* 28px -> 44px */
  --font-size-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);     /* 24px -> 33px */
  --font-size-h4: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);    /* 20px -> 25px */
  --font-size-h5: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);      /* 17.6px -> 20px */
  --font-size-h6: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);      /* 15px -> 16px */
  --font-size-body: 1rem;                                     /* 16px */
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
	background: #eee;
	color: #333;
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-style: normal;
  max-width: 2000px;
  margin:auto;
}

html {
  scroll-behavior: smooth;
}

#booking-area {
  scroll-margin-top: 65px; /* Leaves 50px space above the h2 when scrolled into view */
}

/* Shared Heading Styles */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
  color: var(--heading-color);
  line-height: var(--line-height-heading);
  font-weight: 700;
  margin-bottom: 0.5em;
}

/* Heading Sizes */
h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -0.02em; /* Slightly tighter tracking for display titles */
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-h2);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--font-size-h3);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
  font-weight: 600;
}

h6 {
  font-size: var(--font-size-h6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em; /* Eyebrow heading style */
}

p {
	margin-bottom: 1em;
}

nav ul {
  margin: 0;
  padding:0;
  list-style-type: none;
}

/* Base Button Styling */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem; /* 8px */
  
  background-color: #111; /* Accent color */
  color: #ffffff;
  
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  
  /* Smooth transitions for interaction states */
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  
  /* Subtle default elevation */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hover State */
.button:hover {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
}

/* Active / Click State */
.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Accessibility Focus State */
.button:focus-visible {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* Disabled State */
.button:disabled,
.button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero-area {
	padding: 50px;
	display: flex;
	background: #ddd;
}

.hero-area .hero {
	max-width: 60%;
}

.hero-area .info-area {
	align-self: center;
	padding: 50px;
}

.description-area {
	display:flex;
	background: #333;
	color: #eee;
	padding: 0 100px 100px 100px;
}

.description-area h1,
.description-area h2,
.description-area h3,
.description-area h4,
.description-area h5,
.description-area h6 {
	color: #eee;
}

.property-details h1,
.property-details h2,
.property-details h3,
.property-details h4,
.property-details h5,
.property-details h6 {
	color: #333;
}

.description-area .description {
	max-width: 50%;
	padding-right: 50px;
}

.description-area .property-details {
	font-size: 14px;
	width: 50%;
	padding: 25px;
	background: #555;
	color:#333;
	align-self: stretch;
}

.description-area .property-details h3 {
	font-size: 16px;
}

.description-area .property-details #panel-0 ul,
.description-area .property-details #panel-2 ul {
	list-style-type: disc;
	margin-bottom: 15px;
	padding-left: 30px;
}

.description-area .property-details #panel-1 ul {
	margin-bottom: 15px;
}

.description-area .property-details #panel-1 li {
	display: inline-block;
	border-radius: 5px;
	font-size: 12px;
	padding: 3px 4px;
	margin:0 3px 5px 0;
	background: #ddd;
	border: solid 1px #ccc;
}

.page-intro {
	background:#333;
	padding: 50px;
	text-align:center;
}

.page-intro h2 {
	color: #eee;
	font-size: 4em;
}

.info-area h1 {
	margin-bottom: 0;
}

.property-overview {
	text-transform: capitalize;
	color: #777;
	font-size: 14px;
	margin-bottom: 25px;
}

.page-intro-light {
	padding: 50px;
	text-align:center;
}

.page-intro-light h2 {
	font-size: 4em;
}

.home .page-intro-light {
  padding-bottom:0;
}

.booking-reviews-area {
	display:flex;
	padding: 0 100px 100px 100px;
}

.booking-area {
	width: 50%;
	padding-right: 25px;
}

.reviews-area {
	width: 50%;
	padding-left: 25px; 
}

.reviews-wrapper {
  max-height: 900px; /* Adjust this height to trim reviews section */
  overflow-y: scroll;   /* Cuts off any reviews beyond the max-height */
  overflow-x: hidden;
  position: relative;
  border: solid 1px #aaa;
  padding: 25px;
}

.calendar-widget {
	margin-bottom: 15px;
}

/*
==================================================================================
Header Area
*/
/* Layout Alignment */
header {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Stretches menu height to fill header */
  height: 80px; /* Optional explicit height (adjust as needed) */
  background: #111;
  position: sticky;
  z-index: 1000;
  top:0;
}

/* Vertically center the logo */
header > a {
  display: flex;
  align-items: center;
  max-width: 250px;
  padding: 15px;
}

/* Horizontal Menu Formatting */
.site-nav,
.header-menu-list {
  display: flex;
  height: 100%; /* Spans full header height */
}

.header-menu-list, 
.header-menu-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu-list > li {
  position: relative;
  display: flex;
}

/* Links fill entire parent height & center text vertically */
.header-menu-list a {
  display: flex;
  align-items: center;
  padding: 0 15px;
  width: 100%;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #eee;
}

/* Hover States */
.header-menu-list a:hover,
.header-menu-list li:hover > a {
  background-color: #f0f0f0;
  color: #0073aa;
}

/* Dropdown Arrow Indicator */
.header-menu-list > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.header-menu-list > .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Submenu Dropdown Logic */
.header-menu-list ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-menu-list ul a {
  padding: 12px 15px; /* Separate padding for dropdown items */
  color: #333;
}

.header-menu-list li:hover > ul {
  display: flex;
}

/*
==================================================================================
Hero Area
*/

/* Custom Gallery Carousel Styles */
.acf-gallery-carousel {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.acf-gallery-carousel .swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.acf-gallery-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optional Slide Caption Overlays */
.acf-gallery-carousel .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 14px;
}

/* Custom Navigation Button Styling */
.acf-gallery-carousel .swiper-button-next,
.acf-gallery-carousel .swiper-button-prev {
  color: #ffffff;
  transition: transform 0.2s ease;
}

.acf-gallery-carousel .swiper-button-next:hover,
.acf-gallery-carousel .swiper-button-prev:hover {
  transform: scale(1.15);
}

.acf-gallery-carousel .swiper-pagination-bullet-active {
  background: #ffffff;
}

/* Thumbnails Strip */
.acf-gallery-thumbs {
  height: 90px;
  padding: 10px 0;
  box-sizing: border-box;
}

.acf-gallery-thumbs .swiper-slide {
  width: 5%; /* Controls how many thumbnails are visible at once */
  height: 100%;
  opacity: 0.7;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.acf-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination {
	bottom: 35px!important;
}

/* Active & Hover States for Thumbnails */
.acf-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  outline: 2px solid #0073aa;
}

.acf-gallery-thumbs .swiper-slide:hover {
  opacity: 0.8;
}

/*
==================================================================================
Description Area
*/
.acf-tabs-wrapper {
  max-width: 900px;
  overflow: hidden;
  background-color: #ffffff;
}

/* Tab Navigation Bar */
.acf-tabs-nav {
  display: flex;
  background-color: #eee;
  overflow-x: auto; /* Scrollable tabs on mobile */
  white-space: nowrap;
}

.acf-tab-btn {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.acf-tab-btn:hover {
  color: #111827;
  background-color: #f3f4f6;
}

/* Active Tab Button */
.acf-tab-btn.is-active {
  color: #111;
  background-color: #ffffff;
}

/* Tab Panels */
.acf-tab-panel {
  display: none;
  padding: 2rem;
  line-height: 1.6;
}

.acf-tab-panel.is-active {
  display: block;
}

/*
==================================================================================
Hero Area Layout
*/
/* Hero Container (Full Width & 16:9 Aspect Ratio) */
.hero-section {
    position: relative;
    width: 100%;
    /* Maintains a responsive 1920x1080 ratio based on screen width */
    aspect-ratio: 16 / 9;
    max-height: 100vh; /* Prevents overflow on tall desktop monitors */
    min-height: 500px;  /* Ensures good layout height on mobile devices */
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #111827; /* Dark placeholder fallback */
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dark Overlay */
.hero-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* Adjust opacity (0.55) to lighten/darken */
    z-index: 1;
}

/* Centered Content Block */
.hero-section__content {
    position: relative;
    z-index: 2; /* Sits above the overlay */
    text-align: center;
    max-width: 900px;
    padding: 50px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55); /* Adjust opacity (0.55) to lighten/darken */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Intro Text */
.hero-section__title {
    color: #ffffff;
}

.hero-section__title h1 {
  color: #fff;
}

.hero-section__title p {
  font-size: 18px;
}

/* Button Customizations */
.button.hero-section__btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: #fff;
    color: #111;
}



/*
==================================================================================
Property Card Layout
*/

/* Container using Flexbox for perfect center alignment on all rows */
.property-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers all rows, including orphan items on the bottom row */
    gap: 30px;
    margin: 50px auto;
    max-width: 1900px;
    width: 100%;
}

/* Card Sizing in Flex Layout */
.property-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;

    /* Sizing rules: minimum 300px, maximum 360px */
    flex: 1 1 450px;
    max-width: 450px;
}

/* Image */
.property-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-card__image img {
    transform: scale(1.04);
}

/* Content Area */
.property-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.property-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.property-card__title a {
    color: #111827;
    text-decoration: none;
}

.property-card__title a:hover {
    color: #2563eb;
}

/* Metadata Bar */
.property-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 10px 0;
    margin-bottom: 12px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #4b5563;
}

.property-card__meta span strong {
    color: #111827;
}

/* Description */
.property-card__description {
    font-size: 0.925rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Pagination */
.property-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.property-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
}

.property-pagination .page-numbers.current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Single Column Page Layout */
.site-main {
    padding: 40px 20px;
}

.page-container {
    max-width: 800px; /* Adjust width as needed for your design */
    margin: 0 auto;
    width: 100%;
}

/*
==================================================================================
Footer Area
*/

footer {
	background: #333;
}

footer .logo {
	text-align:center;
	background: #111;
	padding: 15px 15px 10px 15px;
}

footer .logo img {
	display:inline;
	max-width: 250px;
}

.footer-nav {
	display:flex;
}

.footer-nav > div {
	flex: 1;
	max-width: 33%;
	padding: 30px 15px 30px 15px;
	color: #eee;
	text-align:center;
}

.footer-nav > div > div {
	display:inline-block;
	text-align:left;
}

.footer-nav h3 {
	color: #eee;
}


/*
==================================================================================
Media Query Area
*/ 

@media screen and (max-width: 1000px) {

    /* 1. Stack all multi-column flex & grid containers into a single vertical column */
    .hero-area,
    .description-area,
    .booking-reviews-area,
    .footer-nav {
        display: block;
    }

    .hero-area,
    .description-area,
    .page-intro,
    .booking-reviews-area,
    .footer-nav {
      padding: 25px;
    }

    .hero-area .info-area,
    .reviews-area {
        padding:0;
        margin-top: 0;
    }

    .reviews-wrapper {
      max-height: 500px;
    }

    a.button {
      display: inline-block;
      margin:auto;
    }

    .page-intro h2 {
      margin: 0;
      font-size: 40px;
    }

    .description-area h2 {
      font-size: 30px;
    }

    .booking-reviews-area > section {
      width: 100%;
    }

    .footer-nav > div {
      margin: 0;
      padding:0;
      text-align:left;
    }

    .footer-nav ul {
      margin-bottom: 15px;
    }

    .hero-area .hero {
      max-width: 100%;
      margin-bottom: 25px;
    }

    .description-area .description {
      max-width: 100%;
      padding-right: 0;
    }
    .description-area .property-details {
      width: 100%;
    }
}



@media screen and (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .hero-section__title p {
    font-size: 14px;
  }

  .hero-section {
    xxalign-items: inherit;
  }

  .hero-section__overlay {
    background: rgba(0, 0, 0, 0.55);
  }

  .hero-section__content {
    display:block;
    background: none;
  }

  h1 {
    font-size: 40px;
  }

  h2,
  .page-intro-light h2 {
    font-size: 30px;
  }
}

@media screen and (max-width: 500px) {
  header {
    height: 65px;
  }

  header > a {
    max-width: 175px;
  }

  .hero-section__content {
    padding: 30px;
  }

  h1 {
    font-size: 30px;
  }
}

@media screen and (max-width: 400px) {
  .header-menu-list a {
    padding: 0 5px;
  }

  .acf-gallery-thumbs .swiper-slide {
    width: 15%;
  }

  .description-area .property-details {
    padding: 0;
  }

  .acf-tab-btn {
    padding: 15px 10px;
  }

  .footer-nav > div {
    max-width: 100%;
  }
}
