/*
Theme Name: Hacienda Divi Child
Theme URI: https://haciendapark.com/
Description: Divi child theme with Hacienda/Avada-compatible management-site styling.
Author: Aiakaia.com
Template: Divi
Version: 1.9.6
Text Domain: hacienda-divi-child
*/

/*
  Hacienda Divi Child
  Purpose: permanent visual layer after Avada/Fusion -> Divi migration.
  Keep migration logic in the MU plugin; keep long-term design here.
*/

:root {
  --hm-green: #016257;
  --hm-green-dark: #01483f;
  --hm-accent: #a0ce4e;
  --hm-text: #666666;
  --hm-heading: #016257;
  --hm-muted: #747474;
  --hm-border: #e0dede;
  --hm-soft: #f6f6f6;
  --hm-soft-2: #f9f9f9;
  --hm-white: #ffffff;
  --hm-danger: #ff0000;
  --hm-footer: #333333;
  --hm-max-width: 1080px;
  --hm-radius: 3px;
}

/* Base typography: close to the old Avada setup, but slightly more readable. */
body,
#page-container,
.et_pb_text,
.et_pb_module,
input,
textarea,
select,
button {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--hm-text);
  font-size: 14px;
  line-height: 1.6;
}

body {
  background: var(--hm-white);
}

a,
.et_pb_text a,
.entry-content a {
  color: var(--hm-green);
  text-decoration: none;
}

a:hover,
.et_pb_text a:hover,
.entry-content a:hover {
  color: var(--hm-green-dark);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--hm-heading);
  letter-spacing: 0;
}

h1,
.et_pb_text h1 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0.67em 0;
}
h2,
.et_pb_text h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 1.1em;
}
h3,
.et_pb_text h3 {
  font-size: 18px;
  line-height: 1.33;
  margin: 1em 0;
}
h4,
.et_pb_text h4 {
  font-size: 16px;
  line-height: 1.25;
  margin: 1em 0;
}

/* Layout width and breathing room. */
.et_pb_section.hm-page-shell,
.hm-page-shell {
  background: var(--hm-white);
}

.et_pb_row,
.container,
#main-content .container {
  max-width: var(--hm-max-width);
}

#main-content {
  background: var(--hm-white);
}

.et_pb_section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.et_pb_row {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Header look: apply class hm-site-header to your Divi Theme Builder header section. */
.hm-site-header {
  background: var(--hm-white) !important;
  border-bottom: 1px solid var(--hm-green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 10px 0 14px;
  z-index: 9999;
}

.hm-site-header .et_pb_row {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.hm-site-header .et_pb_menu,
.hm-site-header .et_pb_menu_inner_container,
.hm-site-header .et_pb_menu__wrap {
  background: transparent !important;
}

.hm-site-header .et_pb_menu__logo img,
.hm-site-header img {
  max-height: 56px;
  width: auto;
}

.hm-site-header .et-menu > li {
  padding-left: 17px;
  padding-right: 17px;
}

.hm-site-header .et-menu a {
  color: #333333 !important;
  font-size: 15px;
  font-weight: 400;
}

.hm-site-header .et-menu a:hover,
.hm-site-header .et-menu .current-menu-item > a,
.hm-site-header .et-menu .current-menu-ancestor > a {
  color: var(--hm-green) !important;
  opacity: 1;
}

/* Optional top strip: class hm-top-strip on a thin header section above the logo/menu. */
.hm-top-strip {
  background: var(--hm-green) !important;
  color: #fff !important;
  font-size: 13px;
  padding: 6px 0 !important;
}

.hm-top-strip a,
.hm-top-strip .et_pb_text,
.hm-top-strip .et_pb_text a {
  color: #fff !important;
}

/* Footer look: apply class hm-site-footer to your global footer section. */
.hm-site-footer {
  background: #333333 !important;
  color: #dedede !important;
  padding: 30px 0 !important;
}

.hm-site-footer,
.hm-site-footer .et_pb_text,
.hm-site-footer p,
.hm-site-footer li {
  color: #dedede !important;
  font-size: 13px;
}

.hm-site-footer h1,
.hm-site-footer h2,
.hm-site-footer h3,
.hm-site-footer h4,
.hm-site-footer h5,
.hm-site-footer h6 {
  color: #dddddd !important;
  font-size: 15px;
}

.hm-site-footer a {
  color: #dedede !important;
}
.hm-site-footer a:hover {
  color: var(--hm-accent) !important;
}

/* Divi buttons and migrated Fusion buttons. */
.et_pb_button,
.et_pb_button_module_wrapper .et_pb_button,
.ad4-migrated-button,
a.et_pb_button.ad4-migrated-button {
  color: #ffffff !important;
  background: var(--hm-green) !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: var(--hm-radius) !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2 !important;
  padding: 10px 18px !important;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: none;
  transition: all 0.18s ease-in-out;
}

.et_pb_button:hover,
.ad4-migrated-button:hover {
  color: #ffffff !important;
  background: var(--hm-green-dark) !important;
  border-color: var(--hm-green-dark) !important;
  padding: 10px 18px !important;
  text-decoration: none !important;
}

.et_pb_button:after {
  display: none !important;
}

/* Confidential warnings and private notices. */
.hm-private-notice,
.et_pb_text .hm-private-notice,
.et_pb_text span[style*="color: #ff0000"],
.et_pb_text span[style*="color:#ff0000"] {
  color: var(--hm-danger) !important;
  font-weight: 600;
}

.hm-card,
.hm-login-card,
.hm-private-box {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hm-section-title {
  border-bottom: 1px solid var(--hm-border);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* Divi accordion/toggle: used by migrated Fusion accordions. */
.et_pb_accordion.hm-management-accordion,
.et_pb_accordion {
  border-top: 1px solid var(--hm-border);
}

.et_pb_toggle,
.et_pb_accordion_item {
  border: 1px solid var(--hm-border) !important;
  border-top: 0 !important;
  background: #fff !important;
  margin-bottom: 0 !important;
}

.et_pb_toggle_title,
.et_pb_accordion_item .et_pb_toggle_title {
  color: var(--hm-green) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 14px 42px 14px 16px !important;
}

.et_pb_toggle_title:before {
  color: var(--hm-green) !important;
  right: 16px !important;
}

.et_pb_toggle_content {
  padding: 0 16px 16px !important;
  color: var(--hm-text);
}

.et_pb_toggle_open {
  background: #fff !important;
}

.et_pb_toggle_close {
  background: var(--hm-soft-2) !important;
}

/* Dividers/spacers from migrated Fusion separators. */
.et_pb_divider.hm-spacer-only:before,
.et_pb_divider.et_pb_divider_hidden:before {
  display: none !important;
}

.et_pb_divider:before {
  border-top-color: var(--hm-border) !important;
}

/* Forms: WP-Members, Formidable, RCP and generic plugin forms. */
#wpmem_login,
#wpmem_reg,
.frm_forms,
.rcp_form,
form.pmpro_form,
form.login {
  max-width: 760px;
}

#wpmem_login fieldset,
#wpmem_reg fieldset,
.frm_forms fieldset {
  border: 1px solid var(--hm-border);
  background: #fff;
  padding: 20px;
  border-radius: var(--hm-radius);
}

#wpmem_login legend,
#wpmem_reg legend,
.frm_forms legend {
  color: var(--hm-green);
  font-weight: 600;
  padding: 0 8px;
}

#wpmem_login label,
#wpmem_reg label,
.frm_primary_label,
.frm_forms label,
.rcp_form label {
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

#wpmem_login input[type="text"],
#wpmem_login input[type="password"],
#wpmem_login input[type="email"],
#wpmem_reg input[type="text"],
#wpmem_reg input[type="password"],
#wpmem_reg input[type="email"],
.frm_forms input[type="text"],
.frm_forms input[type="email"],
.frm_forms input[type="password"],
.frm_forms input[type="number"],
.frm_forms input[type="tel"],
.frm_forms input[type="url"],
.frm_forms select,
.frm_forms textarea,
.rcp_form input[type="text"],
.rcp_form input[type="email"],
.rcp_form input[type="password"],
.rcp_form select,
.rcp_form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dadada;
  border-radius: var(--hm-radius);
  background: #fff;
  color: #333;
  font-size: 14px;
  padding: 8px 10px;
  box-shadow: none;
}

.frm_forms textarea,
.rcp_form textarea {
  min-height: 120px;
}

#wpmem_login input:focus,
#wpmem_reg input:focus,
.frm_forms input:focus,
.frm_forms select:focus,
.frm_forms textarea:focus,
.rcp_form input:focus,
.rcp_form select:focus,
.rcp_form textarea:focus {
  border-color: var(--hm-green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 98, 87, 0.08);
}

#wpmem_login input[type="submit"],
#wpmem_reg input[type="submit"],
.frm_forms .frm_button_submit,
.frm_forms input[type="submit"],
.rcp_form input[type="submit"] {
  color: #fff !important;
  background: var(--hm-green) !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: var(--hm-radius) !important;
  padding: 10px 18px !important;
  font-size: 13px;
  cursor: pointer;
}

#wpmem_login input[type="submit"]:hover,
#wpmem_reg input[type="submit"]:hover,
.frm_forms .frm_button_submit:hover,
.frm_forms input[type="submit"]:hover,
.rcp_form input[type="submit"]:hover {
  background: var(--hm-green-dark) !important;
  border-color: var(--hm-green-dark) !important;
}

/* TablePress / content tables. */
.tablepress,
.entry-content table,
.et_pb_text table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 13px;
}

.tablepress thead th,
.entry-content table thead th,
.et_pb_text table thead th {
  background: var(--hm-green) !important;
  color: #fff !important;
  border: 1px solid var(--hm-green) !important;
  font-weight: 600;
}

.tablepress td,
.tablepress th,
.entry-content table td,
.entry-content table th,
.et_pb_text table td,
.et_pb_text table th {
  border: 1px solid var(--hm-border) !important;
  padding: 9px 12px !important;
}

.tablepress tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even),
.et_pb_text table tbody tr:nth-child(even) {
  background: var(--hm-soft);
}

/* The Events Calendar / Tribe Events compatibility. */
.tribe-events,
.tribe-common,
.tribe-events-content {
  font-family: Arial, Helvetica, sans-serif !important;
  color: var(--hm-text) !important;
}

.tribe-events .tribe-events-c-search__button,
.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn {
  background-color: var(--hm-green) !important;
  border-radius: var(--hm-radius) !important;
  color: #fff !important;
}

.tribe-events .tribe-events-c-search__button:hover,
.tribe-common .tribe-common-c-btn:hover,
.tribe-common a.tribe-common-c-btn:hover {
  background-color: var(--hm-green-dark) !important;
}

.tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events-single-event-title {
  color: var(--hm-green) !important;
}

.tribe-events-single .tribe-events-event-meta {
  background: var(--hm-soft) !important;
  border: 1px solid var(--hm-border) !important;
}

/* Sidebar/widget compatibility for leftover migrated buttons. */
.et_pb_widget,
.widget {
  color: var(--hm-text);
  font-size: 13px;
}

.et_pb_widget h4,
.widgettitle,
.widget-title {
  color: var(--hm-green);
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid var(--hm-border);
  padding-bottom: 8px;
}

/* Mobile improvements. */
@media (max-width: 980px) {
  body,
  #page-container,
  .et_pb_text,
  .et_pb_module {
    font-size: 15px;
  }

  .hm-site-header .et_pb_row {
    display: block;
  }

  .hm-site-header .et_pb_menu__logo img,
  .hm-site-header img {
    max-height: 48px;
  }

  .et_pb_section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  h1,
  .et_pb_text h1 {
    font-size: 24px;
  }
  h2,
  .et_pb_text h2 {
    font-size: 21px;
  }
  h3,
  .et_pb_text h3 {
    font-size: 18px;
  }

  .tablepress,
  .entry-content table,
  .et_pb_text table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media print {
  .hm-site-header,
  .hm-site-footer,
  #main-header,
  #main-footer,
  .et_pb_menu,
  .et_pb_button,
  .ad4-migrated-button {
    display: none !important;
  }

  body,
  .et_pb_text {
    color: #000 !important;
    font-size: 12px;
  }
}

/* -------------------------------------------------------------------------
   Avada → Divi exact-match layer generated from the supplied Avada page export
   ------------------------------------------------------------------------- */
:root {
  --hm-site-width: 1100px;
  --hm-avada-topbar: #016257;
  --hm-avada-header-border: #016257;
  --hm-avada-footer-bg: #363839;
  --hm-avada-footer-text: #dedede;
  --hm-avada-text-size: 13px;
  --hm-avada-menu-size: 15px;
  --hm-avada-nav-height: 40px;
}

.hm-top-strip,
.hm-logo-header,
.hm-main-menu-section,
.hm-page-shell,
.hm-site-footer {
  font-family: Arial, Helvetica, sans-serif;
}

.hm-top-strip {
  min-height: 43px;
  border-bottom: 1px solid var(--hm-avada-header-border);
}

.hm-top-strip .et_pb_row,
.hm-logo-header .et_pb_row,
.hm-main-menu-section .et_pb_row,
.hm-page-shell .et_pb_row,
.hm-site-footer .et_pb_row {
  max-width: var(--hm-site-width) !important;
}

.hm-top-strip .et_pb_column,
.hm-logo-header .et_pb_column,
.hm-main-menu-section .et_pb_column,
.hm-site-footer .et_pb_column {
  margin-bottom: 0 !important;
}

.hm-top-strip .et_pb_text,
.hm-top-strip .et_pb_text_inner,
.hm-top-strip a {
  color: #ffffff !important;
  font-size: 13px;
  line-height: 43px;
}

.hm-top-strip a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.hm-top-strip .hm-top-menu {
  text-align: right;
}

.hm-top-strip .hm-top-sep {
  display: inline-block;
  opacity: 0.55;
  padding: 0 10px;
}

.hm-logo-header {
  border-bottom: 0;
}

.hm-logo-module img,
.hm-logo-header img {
  width: 308px;
  height: auto;
  max-height: 56px;
}

.hm-main-menu-section {
  border-bottom: 1px solid var(--hm-avada-header-border);
}

.hm-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  min-height: var(--hm-avada-nav-height);
  line-height: var(--hm-avada-nav-height);
}

.hm-main-nav a {
  color: var(--hm-avada-topbar) !important;
  font-size: var(--hm-avada-menu-size);
  line-height: var(--hm-avada-nav-height);
  display: inline-flex;
  align-items: center;
  min-height: var(--hm-avada-nav-height);
  padding: 0 16px;
  border-top: 3px solid transparent;
  text-decoration: none !important;
}

.hm-main-nav a:first-child {
  padding-left: 0;
}

.hm-main-nav a:hover,
.hm-main-nav a:focus {
  color: #01483f !important;
  border-top-color: var(--hm-avada-topbar);
  text-decoration: none !important;
}

.hm-content-with-sidebar .et_pb_column_1_3 {
  border-left: 1px solid #e0dede;
  padding-left: 34px;
}

.hm-post-content,
.hm-post-content .et_pb_text_inner,
.hm-post-content p,
.hm-post-content li {
  color: #666666;
  font-size: 13px;
  line-height: 1.7;
}

.hm-sidebar-search input.et_pb_s,
.hm-sidebar-search input[type="text"] {
  border: 1px solid #dcd9d9 !important;
  border-radius: 0 !important;
  color: #666666 !important;
  font-size: 13px !important;
}

.hm-sidebar-search button,
.hm-sidebar-search input[type="submit"] {
  background: #016257 !important;
  color: #ffffff !important;
  border: 1px solid #016257 !important;
  border-radius: 0 !important;
}

.hm-sidebar-map h4,
.hm-sidebar-map .widgettitle {
  color: #016257 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  border-bottom: 1px solid #e0dede;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.hm-sidebar-map-placeholder p {
  margin-bottom: 0;
}

.hm-site-footer {
  background: var(--hm-avada-footer-bg) !important;
  border-top: 0;
}

.hm-site-footer .et_pb_text,
.hm-site-footer .et_pb_text_inner,
.hm-site-footer p {
  color: var(--hm-avada-footer-text) !important;
  font-size: 12px !important;
  line-height: 1.6;
}

/* Hide standard Divi theme frame when the Theme Builder header/footer are used. */
.hm-user-logged-in #main-header,
.hm-user-logged-in #main-footer,
.hm-user-logged-out #main-header,
.hm-user-logged-out #main-footer {
  display: none;
}

@media (max-width: 980px) {
  .hm-top-strip .hm-top-menu,
  .hm-top-strip .et_pb_text,
  .hm-top-strip .et_pb_text_inner {
    text-align: center !important;
    line-height: 1.6;
  }

  .hm-top-strip {
    padding: 8px 0 !important;
  }

  .hm-main-nav {
    justify-content: center;
    line-height: 1.4;
    padding: 8px 0;
  }

  .hm-main-nav a,
  .hm-main-nav a:first-child {
    padding: 7px 10px;
    min-height: auto;
    line-height: 1.4;
  }

  .hm-content-with-sidebar .et_pb_column_1_3 {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e0dede;
    padding-top: 24px;
    margin-top: 24px;
  }
}

/* =========================================================
   Hacienda Events Calendar Polish
   For The Events Calendar archive + event content area
   ========================================================= */

body.post-type-archive-tribe_events,
body.single-tribe_events {
  --hm-green: #016257;
  --hm-green-dark: #014d44;
  --hm-lime: #a0ce4e;
  --hm-cream: #f7f8f2;
  --hm-soft: #fbfcf8;
  --hm-border: #e3e0d8;
  --hm-text: #333333;
  --hm-muted: #777777;
  --hm-shadow: 0 14px 35px rgba(1, 98, 87, 0.1);
}

/* Page background */
body.post-type-archive-tribe_events #main-content,
body.single-tribe_events #main-content {
  background:
    radial-gradient(
      circle at top left,
      rgba(160, 206, 78, 0.16),
      transparent 360px
    ),
    linear-gradient(180deg, #f7f8f2 0%, #ffffff 420px);
}

/* Main Divi content container */
body.post-type-archive-tribe_events #main-content .container,
body.single-tribe_events #main-content .container {
  max-width: 1180px;
  padding-top: 44px;
  padding-bottom: 55px;
}

/* Content card */
body.post-type-archive-tribe_events #left-area,
body.single-tribe_events #left-area {
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-top: 5px solid var(--hm-green);
  border-radius: 10px;
  box-shadow: var(--hm-shadow);
  padding: 34px 36px 40px;
}

/* Remove Divi's hard divider line beside sidebar */
body.post-type-archive-tribe_events #main-content .container:before,
body.single-tribe_events #main-content .container:before {
  background: transparent !important;
}

/* Sidebar should feel intentional, not pasted on */
body.post-type-archive-tribe_events #sidebar,
body.single-tribe_events #sidebar {
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 24px 22px;
}

body.post-type-archive-tribe_events #sidebar .et_pb_widget,
body.single-tribe_events #sidebar .et_pb_widget {
  margin-bottom: 28px;
}

/* Tribe wrapper */
body.post-type-archive-tribe_events .tribe-common,
body.single-tribe_events .tribe-common {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--hm-text);
}

/* Events title/header */
body.post-type-archive-tribe_events .tribe-events-header,
body.single-tribe_events .tribe-events-header {
  margin-bottom: 28px;
}

body.post-type-archive-tribe_events .tribe-events-c-top-bar,
body.single-tribe_events .tribe-events-c-top-bar {
  background: var(--hm-soft);
  border: 1px solid var(--hm-border);
  border-radius: 9px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

/* Month/date title */
body.post-type-archive-tribe_events .tribe-events-c-top-bar__datepicker-button,
body.single-tribe_events .tribe-events-c-top-bar__datepicker-button {
  color: var(--hm-green);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.25;
}

/* Prev / next buttons */
body.post-type-archive-tribe_events .tribe-events-c-top-bar__nav-link,
body.single-tribe_events .tribe-events-c-top-bar__nav-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--hm-border);
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

body.post-type-archive-tribe_events .tribe-events-c-top-bar__nav-link:hover,
body.single-tribe_events .tribe-events-c-top-bar__nav-link:hover {
  background: var(--hm-green);
  border-color: var(--hm-green);
}

body.post-type-archive-tribe_events
  .tribe-events-c-top-bar__nav-link:hover
  svg
  path,
body.single-tribe_events .tribe-events-c-top-bar__nav-link:hover svg path {
  fill: #ffffff;
}

/* Events search / view bar */
body.post-type-archive-tribe_events .tribe-events-c-events-bar,
body.single-tribe_events .tribe-events-c-events-bar {
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.045);
  margin-bottom: 22px;
}

body.post-type-archive-tribe_events .tribe-events-c-search__input,
body.single-tribe_events .tribe-events-c-search__input {
  color: var(--hm-text);
}

body.post-type-archive-tribe_events .tribe-events-c-search__button,
body.single-tribe_events .tribe-events-c-search__button {
  background: var(--hm-green) !important;
  color: #ffffff !important;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

body.post-type-archive-tribe_events .tribe-events-c-search__button:hover,
body.single-tribe_events .tribe-events-c-search__button:hover {
  background: var(--hm-green-dark) !important;
}

/* Notice box: no upcoming events */
body.post-type-archive-tribe_events .tribe-events-c-messages__message,
body.single-tribe_events .tribe-events-c-messages__message {
  background: #f4f8ea;
  border: 1px solid rgba(160, 206, 78, 0.55);
  border-left: 5px solid var(--hm-lime);
  border-radius: 8px;
  color: var(--hm-green-dark);
  padding: 15px 18px;
  font-weight: 600;
}

/* Latest Past Events heading */
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__heading {
  color: var(--hm-green);
  font-size: 24px;
  font-weight: 700;
  margin: 34px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hm-border);
  position: relative;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__heading:after {
  content: "";
  width: 74px;
  height: 3px;
  background: var(--hm-lime);
  position: absolute;
  left: 0;
  bottom: -2px;
}

/* Past event rows as cards */
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-row {
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  margin-bottom: 18px !important;
  padding: 0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.045);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-row:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 98, 87, 0.28);
  box-shadow: 0 14px 30px rgba(1, 98, 87, 0.1);
}

/* Date tag */
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag {
  background: linear-gradient(180deg, var(--hm-green), var(--hm-green-dark));
  min-width: 92px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-datetime {
  text-align: center;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-month,
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-daynum,
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-year {
  color: #ffffff !important;
  display: block;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-month {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-daynum {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  margin: 3px 0;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-date-tag-year {
  font-size: 12px;
  opacity: 0.82;
}

/* Event details */
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-wrapper {
  padding: 22px 24px !important;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-title {
  margin-bottom: 8px !important;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-title-link {
  color: var(--hm-green) !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-title-link:hover {
  color: var(--hm-green-dark) !important;
  text-decoration: underline !important;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-datetime-wrapper {
  color: var(--hm-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-description,
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-description
  p {
  color: #555555;
  font-size: 14px;
  line-height: 1.65;
}

/* Month calendar grid, if events are added later */
body.post-type-archive-tribe_events .tribe-events-calendar-month {
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-month__header-column {
  background: var(--hm-green);
  color: #ffffff;
  padding: 12px 6px;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-month__header-column-title {
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.post-type-archive-tribe_events .tribe-events-calendar-month__day {
  background: #ffffff;
  transition: background 0.15s ease;
}

body.post-type-archive-tribe_events .tribe-events-calendar-month__day:hover {
  background: #fbfcf8;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-month__day-date-daynum {
  color: var(--hm-green);
  font-weight: 700;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-month__calendar-event-title-link {
  color: var(--hm-green-dark) !important;
  font-weight: 700;
}

/* Subscribe / export dropdown */
body.post-type-archive-tribe_events .tribe-events-c-subscribe-dropdown__button,
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
  border-color: var(--hm-green) !important;
  color: var(--hm-green) !important;
  border-radius: 5px;
  font-weight: 700;
}

body.post-type-archive-tribe_events
  .tribe-events-c-subscribe-dropdown__button:hover,
body.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover {
  background: var(--hm-green) !important;
  color: #ffffff !important;
}

/* Single event page polish */
body.single-tribe_events .tribe-events-single-event-title {
  color: var(--hm-green);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

body.single-tribe_events .tribe-events-schedule {
  background: #f4f8ea;
  border-left: 5px solid var(--hm-lime);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0 26px;
}

body.single-tribe_events .tribe-events-schedule h2 {
  color: var(--hm-green-dark);
  font-size: 16px;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 980px) {
  body.post-type-archive-tribe_events #left-area,
  body.single-tribe_events #left-area {
    padding: 26px 22px 30px;
  }

  body.post-type-archive-tribe_events #sidebar,
  body.single-tribe_events #sidebar {
    margin-top: 30px;
  }

  body.post-type-archive-tribe_events
    .tribe-events-calendar-latest-past__event-row {
    display: block;
  }

  body.post-type-archive-tribe_events
    .tribe-events-calendar-latest-past__event-date-tag {
    min-width: 100%;
    padding: 12px;
  }

  body.post-type-archive-tribe_events
    .tribe-events-calendar-latest-past__event-date-tag-datetime {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: center;
  }

  body.post-type-archive-tribe_events
    .tribe-events-calendar-latest-past__event-date-tag-month,
  body.post-type-archive-tribe_events
    .tribe-events-calendar-latest-past__event-date-tag-daynum,
  body.post-type-archive-tribe_events
    .tribe-events-calendar-latest-past__event-date-tag-year {
    display: inline-block;
  }
}

@media (max-width: 640px) {
  body.post-type-archive-tribe_events #main-content .container,
  body.single-tribe_events #main-content .container {
    width: 92%;
    padding-top: 28px;
  }

  body.post-type-archive-tribe_events #left-area,
  body.single-tribe_events #left-area {
    padding: 22px 18px 26px;
    border-radius: 8px;
  }

  body.post-type-archive-tribe_events .tribe-events-c-top-bar {
    padding: 14px;
  }

  body.post-type-archive-tribe_events
    .tribe-events-c-top-bar__datepicker-button {
    font-size: 20px;
  }

  body.single-tribe_events .tribe-events-single-event-title {
    font-size: 25px;
  }
}

/* =========================================================
   Hacienda Final Header + Events Refinements
   Version 1.2.0
   Additions are intentionally placed last so they override Divi/plugin defaults.
   ========================================================= */

/* ---------------------------------------------------------
   Brand tints: replace old Avada/Divi blue and bright lime
   --------------------------------------------------------- */

:root {
  --hm-green: #016257;
  --hm-green-dark: #014d44;
  --hm-green-light: #4a968b;
  --hm-mint: #dcefeb;
  --hm-mint-soft: #f3f8f7;
  --hm-soft-green: #f7fbfa;
}

/* Catch common Divi blue leftovers */
#et_search_icon:hover,
.mobile_menu_bar:before,
.mobile_menu_bar:after,
.et_pb_menu__icon:after,
.et_pb_menu__search-button:after,
.et_pb_menu__cart-button:after,
.et_pb_menu .et_mobile_menu,
.et_pb_menu .et_mobile_menu ul {
  color: var(--hm-green) !important;
}

.et-search-form,
.nav li ul,
.et_mobile_menu {
  border-color: var(--hm-green) !important;
}

/* ---------------------------------------------------------
   Top green bar search
   Header JSON uses:
   .hm-top-strip, .hm-top-phone, .hm-top-search, .hm-top-links
   --------------------------------------------------------- */

.hm-top-strip {
  background: var(--hm-green) !important;
  color: #ffffff !important;
}

.hm-top-strip .et_pb_row {
  align-items: center;
}

.hm-top-strip .et_pb_text,
.hm-top-strip .et_pb_text_inner,
.hm-top-strip p,
.hm-top-strip a,
.hm-top-strip .hm-top-menu {
  color: #ffffff !important;
  font-size: 13px;
  line-height: 43px;
}

.hm-top-strip p {
  padding-bottom: 0 !important;
}

.hm-top-strip a {
  text-decoration: none !important;
}

.hm-top-strip a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.hm-top-strip .hm-top-menu {
  text-align: right;
}

.hm-top-strip .hm-top-sep {
  display: inline-block;
  opacity: 0.55;
  padding: 0 10px;
}

.hm-top-search {
  line-height: 43px;
}

.hm-top-search .et_pb_code_inner {
  line-height: 43px;
}

.hm-top-search-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hm-top-search-field {
  width: 175px;
  height: 28px;
  min-height: 28px;
  background: rgba(255, 255, 255, 0.13) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-right: 0 !important;
  border-radius: 3px 0 0 3px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 28px;
  padding: 0 9px !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}

.hm-top-search-field::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.hm-top-search-field:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}

.hm-top-search-submit {
  height: 28px;
  min-height: 28px;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 0 3px 3px 0 !important;
  color: var(--hm-green) !important;
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 26px;
  padding: 0 10px !important;
  text-transform: uppercase;
  transition: all 0.18s ease;
}

.hm-top-search-submit:hover,
.hm-top-search-submit:focus {
  background: var(--hm-mint-soft) !important;
  border-color: var(--hm-mint-soft) !important;
  color: var(--hm-green-dark) !important;
}

/* ---------------------------------------------------------
   Header menu desktop dropdowns
   Replaces Divi module-level `selector ...` custom CSS
   --------------------------------------------------------- */

@media (min-width: 981px) {
  .hm-main-menu-section {
    background: #f6f6f6 !important;
    border-color: var(--hm-green) !important;
  }

  .hm-main-menu-section .et_pb_menu,
  .hm-main-menu-section .et_pb_menu_inner_container,
  .hm-main-menu-section .et_pb_menu__wrap {
    background: transparent !important;
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav,
  .hm-main-menu-section .et_pb_menu .et-menu-nav > ul {
    width: 100%;
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav > ul {
    justify-content: center;
  }

  .hm-main-menu-section .et_pb_menu .et-menu > li {
    margin: 0 !important;
    padding-left: 11px;
    padding-right: 11px;
  }

  .hm-main-menu-section .et_pb_menu .et-menu > li > a {
    color: var(--hm-green) !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 40px !important;
    padding: 0 5px !important;
    text-decoration: none !important;
  }

  .hm-main-menu-section .et_pb_menu .et-menu > li > a:hover,
  .hm-main-menu-section .et_pb_menu .et-menu .current-menu-item > a,
  .hm-main-menu-section .et_pb_menu .et-menu .current-menu-ancestor > a {
    color: var(--hm-green-dark) !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }

  .hm-main-menu-section
    .et_pb_menu
    .et-menu
    .menu-item-has-children
    > a:first-child:after {
    color: var(--hm-green) !important;
    top: 50% !important;
    transform: translateY(-50%);
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu,
  .hm-main-menu-section .et_pb_menu .nav li ul {
    width: 240px;
    background: #ffffff !important;
    border-top: 3px solid var(--hm-green) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    text-align: left;
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li,
  .hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li a,
  .hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li a {
    display: block;
    width: 100%;
    background: #ffffff !important;
    color: #333333 !important;
    font-size: 13px;
    line-height: 1.45 !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li a:hover,
  .hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li a:hover {
    background: var(--hm-mint-soft) !important;
    color: var(--hm-green) !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }

  .hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li ul.sub-menu,
  .hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li ul.sub-menu {
    left: 240px;
    top: -3px;
  }
}

/* ---------------------------------------------------------
   Header mobile/tablet
   Removes Divi blue and keeps the header compact/clean
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .hm-top-strip {
    min-height: auto;
    padding: 8px 0 !important;
  }

  .hm-top-strip .et_pb_row {
    width: 92% !important;
    max-width: 520px !important;
    display: block !important;
    padding: 0 !important;
  }

  .hm-top-strip .et_pb_column {
    width: 100% !important;
    margin-bottom: 4px !important;
  }

  .hm-top-strip .et_pb_text,
  .hm-top-strip .et_pb_text_inner,
  .hm-top-strip p,
  .hm-top-strip .hm-top-menu {
    text-align: center !important;
    line-height: 1.45 !important;
  }

  .hm-top-search {
    margin: 6px auto 5px !important;
  }

  .hm-top-search .et_pb_code_inner {
    line-height: 1 !important;
  }

  .hm-top-search-form {
    justify-content: center;
    max-width: 330px;
    margin: 0 auto;
  }

  .hm-top-search-field {
    width: 100%;
    max-width: 245px;
  }

  .hm-logo-header {
    padding: 14px 0 10px !important;
  }

  .hm-logo-header .et_pb_row {
    width: 92% !important;
    padding: 0 !important;
  }

  .hm-logo-module,
  .hm-logo-module .et_pb_image_wrap {
    text-align: center !important;
    display: block;
  }

  .hm-logo-module img,
  .hm-logo-header img {
    max-width: 280px;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hm-main-menu-section {
    background: #ffffff !important;
    border-top: 1px solid rgba(1, 98, 87, 0.12) !important;
    border-bottom: 1px solid var(--hm-green) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 0 !important;
  }

  .hm-main-menu-section .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    padding: 0 !important;
  }

  .hm-main-menu-section .et_pb_column {
    margin-bottom: 0 !important;
  }

  .hm-main-menu-section .et_pb_menu {
    background: #ffffff !important;
    padding: 0 !important;
  }

  .hm-main-menu-section .et_pb_menu_inner_container,
  .hm-main-menu-section .et_pb_menu__wrap {
    min-height: 52px;
    background: #ffffff !important;
  }

  .hm-main-menu-section .et_pb_menu__wrap {
    justify-content: center !important;
    align-items: center !important;
  }

  .hm-main-menu-section .mobile_menu_bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hm-mint);
    border-radius: 50%;
    background: var(--hm-soft-green);
    margin: 4px 0;
  }

  .hm-main-menu-section .mobile_menu_bar:before,
  .hm-main-menu-section .mobile_menu_bar:after,
  .hm-main-menu-section .et_pb_menu__icon:after {
    color: var(--hm-green) !important;
  }

  .hm-main-menu-section .mobile_menu_bar:hover:before,
  .hm-main-menu-section .mobile_nav.opened .mobile_menu_bar:before {
    color: var(--hm-green-dark) !important;
  }

  .hm-main-menu-section .mobile_nav.opened .mobile_menu_bar:before {
    content: "\4d";
  }

  .hm-main-menu-section .et_mobile_menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0 !important;
    background: #ffffff !important;
    border-top: 3px solid var(--hm-green) !important;
    box-shadow: 0 8px 22px rgba(1, 98, 87, 0.14) !important;
  }

  .hm-main-menu-section .et_mobile_menu,
  .hm-main-menu-section .et_mobile_menu ul {
    list-style: none !important;
  }

  .hm-main-menu-section .et_mobile_menu li {
    padding: 0 !important;
    margin: 0 !important;
  }

  .hm-main-menu-section .et_mobile_menu li a {
    color: var(--hm-green) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e3e0d8 !important;
    padding: 13px 22px !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
  }

  .hm-main-menu-section .et_mobile_menu li a:hover,
  .hm-main-menu-section .et_mobile_menu .current-menu-item > a,
  .hm-main-menu-section .et_mobile_menu .current-menu-ancestor > a {
    color: #ffffff !important;
    background: var(--hm-green) !important;
    opacity: 1 !important;
  }

  .hm-main-menu-section .et_mobile_menu .menu-item-has-children > a {
    color: var(--hm-green-dark) !important;
    background: var(--hm-mint-soft) !important;
    font-weight: 800;
  }

  .hm-main-menu-section .et_mobile_menu .menu-item-has-children > a:hover {
    color: #ffffff !important;
    background: var(--hm-green) !important;
  }

  .hm-main-menu-section .et_mobile_menu li ul {
    padding-left: 0 !important;
    background: var(--hm-soft-green) !important;
  }

  .hm-main-menu-section .et_mobile_menu li li {
    padding-left: 0 !important;
  }

  .hm-main-menu-section .et_mobile_menu li li a {
    padding-left: 34px !important;
    font-size: 13px;
    color: #333333 !important;
    background: var(--hm-soft-green) !important;
  }

  .hm-main-menu-section .et_mobile_menu li li a:hover {
    color: #ffffff !important;
    background: var(--hm-green) !important;
  }
}

@media (max-width: 480px) {
  .hm-logo-module img,
  .hm-logo-header img {
    max-width: 240px;
  }

  .hm-top-search-submit {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .hm-main-menu-section .et_mobile_menu li a {
    padding: 12px 18px !important;
  }

  .hm-main-menu-section .et_mobile_menu li li a {
    padding-left: 28px !important;
  }
}

/* ---------------------------------------------------------
   Events: green-tint overrides and single-event details cards
   No sidebar hide rules included.
   --------------------------------------------------------- */

body.post-type-archive-tribe_events,
body.single-tribe_events {
  --hm-lime: #4a968b;
  --hm-mint: #dcefeb;
  --hm-cream: #f3f8f7;
  --hm-soft: #f7fbfa;
}

/* Softer brand-matched event page background */
body.post-type-archive-tribe_events #main-content,
body.single-tribe_events #main-content {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 98, 87, 0.12),
      transparent 360px
    ),
    linear-gradient(180deg, #f3f8f7 0%, #ffffff 420px);
}

/* Single event: use available full width, but don't touch sidebar visibility */
body.single-tribe_events #left-area {
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 36px !important;
  padding-left: 36px !important;
}

body.single-tribe_events #tribe-events-content.tribe-events-single {
  max-width: 100%;
  margin: 0;
}

/* Back link */
body.single-tribe_events .tribe-events-back {
  margin-bottom: 20px;
}

body.single-tribe_events .tribe-events-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hm-soft);
  color: var(--hm-green) !important;
  border: 1px solid var(--hm-mint);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

body.single-tribe_events .tribe-events-back a:hover {
  background: var(--hm-green);
  color: #ffffff !important;
}

/* Event title card */
body.single-tribe_events .tribe-events-single-event-title {
  background:
    radial-gradient(
      circle at top right,
      rgba(1, 98, 87, 0.1),
      transparent 260px
    ),
    linear-gradient(135deg, #ffffff 0%, var(--hm-soft) 100%);
  border: 1px solid var(--hm-border);
  border-left: 6px solid var(--hm-green);
  border-radius: 12px;
  color: var(--hm-green) !important;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  padding: 24px 26px;
  margin: 0 0 16px;
  box-shadow: 0 10px 25px rgba(1, 98, 87, 0.08);
}

/* Event date range under title */
body.single-tribe_events .tribe-events-schedule {
  background: linear-gradient(135deg, var(--hm-green), var(--hm-green-dark));
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  padding: 16px 20px;
  margin: 0 0 28px;
  box-shadow: 0 10px 24px rgba(1, 98, 87, 0.16);
}

body.single-tribe_events .tribe-events-schedule:before {
  content: "Event Dates";
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 4px;
}

body.single-tribe_events .tribe-events-schedule,
body.single-tribe_events .tribe-events-schedule div,
body.single-tribe_events .tribe-events-schedule span {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
}

/* Details box: full width with Start / End / Category mini cards */
body.single-tribe_events .tribe-events-single-section.tribe-events-event-meta {
  width: 100% !important;
  display: block !important;
  background: #ffffff !important;
  border: 1px solid var(--hm-border) !important;
  border-top: 5px solid var(--hm-lime) !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin: 30px 0 34px !important;
  box-shadow: 0 12px 28px rgba(1, 98, 87, 0.09);
  overflow: hidden;
}

body.single-tribe_events .tribe-events-meta-group {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-tribe_events .tribe-events-single-section-title {
  background: linear-gradient(
    90deg,
    rgba(1, 98, 87, 0.08),
    rgba(1, 98, 87, 0.14)
  );
  color: var(--hm-green) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  margin: 0 !important;
  padding: 18px 24px !important;
  border-bottom: 1px solid var(--hm-border);
}

body.single-tribe_events .tribe-events-single-section-title:before {
  content: "●";
  color: var(--hm-lime);
  font-size: 15px;
  margin-right: 9px;
  vertical-align: 1px;
}

body.single-tribe_events .tribe-events-meta-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none !important;
  margin: 0 !important;
  padding: 22px !important;
}

body.single-tribe_events .tribe-events-meta-item {
  background: var(--hm-soft);
  border: 1px solid var(--hm-mint);
  border-radius: 10px;
  padding: 18px 18px 16px;
  margin: 0 !important;
  min-height: 104px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

body.single-tribe_events .tribe-events-meta-item:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 98, 87, 0.28);
  box-shadow: 0 10px 22px rgba(1, 98, 87, 0.08);
}

body.single-tribe_events .tribe-events-meta-item:before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hm-mint);
  color: var(--hm-green);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}

body.single-tribe_events .tribe-events-meta-item:nth-child(1):before {
  content: "↗";
}

body.single-tribe_events .tribe-events-meta-item:nth-child(2):before {
  content: "↘";
}

body.single-tribe_events .tribe-events-meta-item:nth-child(3):before {
  content: "✓";
}

body.single-tribe_events .tribe-events-meta-label {
  display: block;
  color: var(--hm-green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 9px;
}

body.single-tribe_events .tribe-events-meta-value {
  display: block;
  color: #333333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

body.single-tribe_events .tribe-events-meta-value abbr {
  color: #333333;
  text-decoration: none !important;
  border: 0 !important;
}

body.single-tribe_events .tribe-events-event-categories a {
  display: inline-flex;
  align-items: center;
  background: var(--hm-green);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
}

body.single-tribe_events .tribe-events-event-categories a:hover {
  background: var(--hm-green-dark);
  color: #ffffff !important;
}

/* Previous / next event navigation */
body.single-tribe_events #tribe-events-header,
body.single-tribe_events #tribe-events-footer {
  margin: 24px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.single-tribe_events .tribe-events-sub-nav {
  display: flex !important;
  justify-content: space-between;
  gap: 16px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-tribe_events .tribe-events-sub-nav li {
  flex: 1 1 0;
  margin: 0 !important;
}

body.single-tribe_events .tribe-events-sub-nav li:empty {
  display: none;
}

body.single-tribe_events .tribe-events-sub-nav a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: 9px;
  color: var(--hm-green) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

body.single-tribe_events .tribe-events-sub-nav a:hover {
  background: var(--hm-green);
  border-color: var(--hm-green);
  color: #ffffff !important;
}

/* Old month/year links as chips */
body.post-type-archive-tribe_events .tribe-events-after-html,
body.single-tribe_events .tribe-events-after-html {
  background: #ffffff;
  border: 1px solid var(--hm-border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(1, 98, 87, 0.07);
  margin-top: 34px;
  padding: 24px;
}

body.post-type-archive-tribe_events .tribe-events-after-html:before,
body.single-tribe_events .tribe-events-after-html:before {
  content: "Browse Older Events";
  display: block;
  color: var(--hm-green);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hm-border);
}

body.post-type-archive-tribe_events .tribe-events-after-html p,
body.single-tribe_events .tribe-events-after-html p {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-tribe_events .tribe-events-after-html br,
body.single-tribe_events .tribe-events-after-html br {
  display: none;
}

body.post-type-archive-tribe_events .tribe-events-after-html a,
body.single-tribe_events .tribe-events-after-html a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-soft);
  border: 1px solid var(--hm-mint);
  border-radius: 999px;
  color: var(--hm-green) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  min-height: 34px;
  padding: 10px 14px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body.post-type-archive-tribe_events .tribe-events-after-html a:hover,
body.single-tribe_events .tribe-events-after-html a:hover {
  background: var(--hm-green);
  border-color: var(--hm-green);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.13);
}

/* Archive date pill */
body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-datetime-wrapper {
  display: inline-flex;
  align-items: center;
  background: var(--hm-soft);
  border: 1px solid var(--hm-mint);
  border-radius: 999px;
  color: var(--hm-green-dark) !important;
  padding: 7px 12px;
  margin-bottom: 12px;
}

body.post-type-archive-tribe_events
  .tribe-events-calendar-latest-past__event-datetime-wrapper:before {
  content: "Dates";
  color: var(--hm-green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
}

/* Event refinements on mobile */
@media (max-width: 980px) {
  body.single-tribe_events #left-area {
    padding-right: 22px !important;
    padding-left: 22px !important;
  }

  body.single-tribe_events .tribe-events-meta-list {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px !important;
  }

  body.single-tribe_events .tribe-events-single-event-title {
    font-size: 26px;
    padding: 20px;
  }

  body.single-tribe_events .tribe-events-schedule,
  body.single-tribe_events .tribe-events-schedule div,
  body.single-tribe_events .tribe-events-schedule span {
    font-size: 16px;
  }

  body.single-tribe_events .tribe-events-sub-nav {
    display: block !important;
  }

  body.single-tribe_events .tribe-events-sub-nav li {
    margin-bottom: 10px !important;
  }
}

@media (max-width: 640px) {
  body.post-type-archive-tribe_events .tribe-events-after-html,
  body.single-tribe_events .tribe-events-after-html {
    padding: 18px;
  }

  body.post-type-archive-tribe_events .tribe-events-after-html a,
  body.single-tribe_events .tribe-events-after-html a {
    width: 100%;
  }
}

/* =========================================================
   Hacienda Final Header, Sidebar + Event Detail Refinements
   Version 1.3.0
   Additions/overrides after the previous final CSS layer
   ========================================================= */

/* ---------- Header top bar: phone left, search/help/login right ---------- */
.hm-top-strip .et_pb_row {
  max-width: var(--hm-site-width, 1100px) !important;
  width: 94% !important;
}

.hm-top-strip .hm-top-actions {
  margin: 0 !important;
  padding: 0 !important;
}

.hm-top-strip .hm-top-actions-wrap,
.hm-top-strip .hm-top-actions .et_pb_text_inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 43px;
  line-height: 1.2 !important;
}

.hm-top-strip .hm-top-menu {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  white-space: nowrap;
  line-height: 1.2 !important;
}

.hm-top-strip .hm-top-search-form {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: 235px;
  max-width: 235px;
  margin: 0 !important;
  line-height: 1 !important;
}

.hm-top-strip .hm-top-search-field {
  width: 100%;
  height: 28px !important;
  min-height: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-right: 0 !important;
  border-radius: 4px 0 0 4px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 28px !important;
  padding: 0 9px !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.hm-top-strip .hm-top-search-field::placeholder {
  color: rgba(255, 255, 255, 0.78) !important;
}

.hm-top-strip .hm-top-search-field:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
}

.hm-top-strip .hm-top-search-submit {
  width: auto;
  height: 28px !important;
  min-height: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 0 4px 4px 0 !important;
  background: #ffffff !important;
  color: var(--hm-green) !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 26px !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 10px !important;
  cursor: pointer;
  box-shadow: none !important;
}

.hm-top-strip .hm-top-search-submit:hover,
.hm-top-strip .hm-top-search-submit:focus {
  background: #f3f8f7 !important;
  color: var(--hm-green-dark) !important;
}

.hm-top-strip .hm-top-sep {
  line-height: 1 !important;
}

/* ---------- Main nav: centered, full browser width, no wrapping on desktop ---------- */
.hm-main-menu-section {
  width: 100% !important;
  overflow: visible !important;
}

.hm-main-menu-section .et_pb_row {
  width: 100% !important;
  max-width: none !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.hm-main-menu-section .et_pb_column,
.hm-main-menu-section .et_pb_menu,
.hm-main-menu-section .et_pb_menu_inner_container,
.hm-main-menu-section .et_pb_menu__wrap,
.hm-main-menu-section .et_pb_menu__menu,
.hm-main-menu-section .et_pb_menu__menu > nav,
.hm-main-menu-section .et_pb_menu__menu > nav > ul {
  width: 100% !important;
  max-width: none !important;
}

.hm-main-menu-section .et_pb_menu__wrap,
.hm-main-menu-section .et_pb_menu__menu,
.hm-main-menu-section .et_pb_menu__menu > nav,
.hm-main-menu-section .et_pb_menu__menu > nav > ul {
  justify-content: center !important;
}

.hm-main-menu-section .et_pb_menu .et-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hm-main-menu-section .et_pb_menu .et-menu > li {
  flex: 0 0 auto;
  padding-left: 11px !important;
  padding-right: 11px !important;
  margin: 0 !important;
}

.hm-main-menu-section .et_pb_menu .et-menu > li > a {
  white-space: nowrap;
  line-height: 40px !important;
  min-height: 40px;
  padding: 0 4px !important;
  color: var(--hm-green) !important;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none !important;
}

.hm-main-menu-section .et_pb_menu .et-menu > li > a:hover,
.hm-main-menu-section .et_pb_menu .et-menu > li.current-menu-item > a,
.hm-main-menu-section .et_pb_menu .et-menu > li.current-menu-ancestor > a {
  color: var(--hm-green-dark) !important;
  opacity: 1 !important;
}

/* Keep dropdowns clean after moving module custom CSS into theme CSS. */
.hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu,
.hm-main-menu-section .et_pb_menu .nav li ul {
  border-top-color: var(--hm-green) !important;
  border-top-width: 3px !important;
  background: #ffffff !important;
  padding: 0 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li,
.hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li {
  display: block;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

.hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li a,
.hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li a {
  display: block;
  width: 100%;
  padding: 10px 15px !important;
  color: #333333 !important;
  font-size: 13px;
  line-height: 1.45 !important;
  background: #ffffff !important;
  text-decoration: none !important;
}

.hm-main-menu-section .et_pb_menu .et-menu-nav ul.sub-menu li a:hover,
.hm-main-menu-section .et_pb_menu .nav li ul.sub-menu li a:hover {
  color: var(--hm-green) !important;
  background: #f3f8f7 !important;
  opacity: 1 !important;
}

/* ---------- Single event: separate Event Dates label from the actual dates ---------- */
body.single-tribe_events .tribe-events-schedule:before {
  margin-bottom: 9px !important;
}

body.single-tribe_events .tribe-events-schedule > * {
  margin-top: 0 !important;
}

body.single-tribe_events .tribe-events-schedule div,
body.single-tribe_events .tribe-events-schedule span {
  line-height: 1.35 !important;
}

/* ---------- Theme Builder sidebar: match the new event/card styling ---------- */
.hm-content-with-sidebar .et_pb_column_1_3,
.et_pb_column_1_tb_body {
  color: var(--hm-text);
}

.hm-content-with-sidebar .et_pb_column_1_3 {
  border-left: 0 !important;
  padding-left: 30px !important;
}

.hm-sidebar-search,
.hm-sidebar-map,
.hm-sidebar-map + .et_pb_image,
.hm-sidebar-map-image {
  max-width: 100%;
}

.hm-sidebar-search {
  background: #ffffff !important;
  border: 1px solid var(--hm-border) !important;
  border-top: 5px solid var(--hm-green) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(1, 98, 87, 0.07);
  padding: 18px !important;
  margin-bottom: 24px !important;
}

.hm-sidebar-search:before {
  content: "Search";
  display: block;
  color: var(--hm-green);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hm-border);
}

.hm-sidebar-search .et_pb_searchform,
.hm-sidebar-search .et_pb_searchform > div {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 !important;
}

.hm-sidebar-search input.et_pb_s,
.hm-sidebar-search input[type="text"] {
  flex: 1 1 auto;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid var(--hm-border) !important;
  border-right: 0 !important;
  border-radius: 7px 0 0 7px !important;
  background: #f7fbfa !important;
  color: #333333 !important;
  font-size: 13px !important;
  line-height: 42px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

.hm-sidebar-search input.et_pb_s:focus,
.hm-sidebar-search input[type="text"]:focus {
  background: #ffffff !important;
  border-color: var(--hm-green) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(1, 98, 87, 0.08) !important;
}

.hm-sidebar-search input.et_pb_searchsubmit,
.hm-sidebar-search input[type="submit"] {
  position: static !important;
  flex: 0 0 auto;
  width: auto !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: 0 7px 7px 0 !important;
  background: var(--hm-green) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 40px !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 13px !important;
  cursor: pointer;
  text-indent: 0 !important;
  opacity: 1 !important;
}

.hm-sidebar-search input.et_pb_searchsubmit:hover,
.hm-sidebar-search input[type="submit"]:hover {
  background: var(--hm-green-dark) !important;
  border-color: var(--hm-green-dark) !important;
}

/* Map block and image should read as one polished sidebar card. */
.hm-sidebar-map {
  background: #ffffff !important;
  border: 1px solid var(--hm-border) !important;
  border-bottom: 0 !important;
  border-top: 5px solid var(--hm-green) !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 10px 24px rgba(1, 98, 87, 0.07);
  padding: 18px 18px 0 !important;
  margin-bottom: 0 !important;
}

.hm-sidebar-map h4,
.hm-sidebar-map .widgettitle {
  color: var(--hm-green) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  border-bottom: 1px solid var(--hm-border) !important;
  padding-bottom: 11px !important;
  margin: 0 !important;
}

.hm-sidebar-map + .et_pb_image,
.hm-sidebar-map-image {
  background: #ffffff !important;
  border: 1px solid var(--hm-border) !important;
  border-top: 0 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 10px 24px rgba(1, 98, 87, 0.07);
  padding: 14px 18px 18px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
}

.hm-sidebar-map + .et_pb_image .et_pb_image_wrap,
.hm-sidebar-map-image .et_pb_image_wrap {
  display: block !important;
  overflow: hidden;
  border: 1px solid var(--hm-border);
  border-radius: 9px;
  background: #f7fbfa;
  padding: 5px;
}

.hm-sidebar-map + .et_pb_image img,
.hm-sidebar-map-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 5px;
  cursor: zoom-in;
}

.hm-sidebar-map + .et_pb_image .et_overlay,
.hm-sidebar-map-image .et_overlay {
  border-radius: 9px;
  background: rgba(1, 98, 87, 0.7) !important;
  border: 0 !important;
}

.hm-sidebar-map + .et_pb_image .et_overlay:before,
.hm-sidebar-map-image .et_overlay:before {
  color: #ffffff !important;
}

/* Sidebar on tablet/mobile */
@media (max-width: 980px) {
  .hm-top-strip .et_pb_row {
    width: 92% !important;
  }

  .hm-top-strip .hm-top-actions-wrap,
  .hm-top-strip .hm-top-actions .et_pb_text_inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 0;
    padding: 8px 0 2px;
  }

  .hm-top-strip .hm-top-search-form {
    order: 1;
    width: min(100%, 330px);
    max-width: 330px;
  }

  .hm-top-strip .hm-top-menu {
    order: 2;
    justify-content: center;
  }

  .hm-main-menu-section .et_pb_row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hm-main-menu-section .mobile_menu_bar:before,
  .hm-main-menu-section .mobile_menu_bar:after,
  .hm-main-menu-section .et_pb_menu__icon:after {
    color: var(--hm-green) !important;
  }

  .hm-main-menu-section .et_mobile_menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 100%;
    padding: 0 !important;
    background: #ffffff !important;
    border-top: 3px solid var(--hm-green) !important;
    box-shadow: 0 8px 22px rgba(1, 98, 87, 0.14) !important;
  }

  .hm-main-menu-section .et_mobile_menu li a {
    color: var(--hm-green) !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e3e0d8 !important;
    padding: 13px 22px !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
  }

  .hm-main-menu-section .et_mobile_menu li a:hover,
  .hm-main-menu-section .et_mobile_menu .current-menu-item > a,
  .hm-main-menu-section .et_mobile_menu .current-menu-ancestor > a {
    color: #ffffff !important;
    background: var(--hm-green) !important;
    opacity: 1 !important;
  }

  .hm-content-with-sidebar .et_pb_column_1_3 {
    padding-left: 0 !important;
    border-top: 0 !important;
  }

  .hm-sidebar-search,
  .hm-sidebar-map,
  .hm-sidebar-map + .et_pb_image,
  .hm-sidebar-map-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .hm-main-menu-section .et_pb_menu .et-menu > li {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .hm-main-menu-section .et_pb_menu .et-menu > li > a {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .hm-top-strip .hm-top-search-form {
    width: 100%;
  }

  .hm-sidebar-search .et_pb_searchform > div {
    display: block;
  }

  .hm-sidebar-search input.et_pb_s,
  .hm-sidebar-search input[type="text"] {
    border-right: 1px solid var(--hm-border) !important;
    border-radius: 7px !important;
    margin-bottom: 8px !important;
  }

  .hm-sidebar-search input.et_pb_searchsubmit,
  .hm-sidebar-search input[type="submit"] {
    width: 100% !important;
    border-radius: 7px !important;
  }
}

/* =========================================================
   Hacienda UX Hotfix: Event Date Spacing + Journal Area
   Add at the very bottom of style.css
   ========================================================= */

/* ---------------------------------------------------------
   Single Event: fix Event Dates label touching actual dates
   --------------------------------------------------------- */

body.single-tribe_events .tribe-events-schedule {
  display: block !important;
  padding: 18px 22px !important;
}

body.single-tribe_events .tribe-events-schedule:before {
  display: block !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1.2 !important;
}

body.single-tribe_events .tribe-events-schedule > div {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.45 !important;
}

body.single-tribe_events .tribe-events-schedule .tribe-event-date-start,
body.single-tribe_events .tribe-events-schedule .tribe-event-date-end {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff !important;
  padding: 7px 12px;
  line-height: 1.1 !important;
  white-space: nowrap;
}

body.single-tribe_events .tribe-events-schedule > div {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* ---------------------------------------------------------
   Daily Activity Journal: nicer page shell/content area
   --------------------------------------------------------- */

.et_pb_text_inner h4 span[style*="color: #ff0000"],
.et_pb_text_inner h4 span[style*="color:#ff0000"] {
  display: block;
  background: #fff5f5;
  border: 1px solid #f1c6c6;
  border-left: 5px solid #cc3333;
  border-radius: 9px;
  color: #a51f1f !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.et_pb_text_inner h2 {
  color: var(--hm-green);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.et_pb_text_inner h2:after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #4a968b;
  border-radius: 999px;
  margin-top: 12px;
}

/* ---------------------------------------------------------
   Formidable Journal Form: card styling
   --------------------------------------------------------- */

.frm_forms.with_frm_style {
  max-width: 100% !important;
  margin: 22px 0 26px !important;
}

.frm_forms.with_frm_style form {
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-top: 5px solid var(--hm-green);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(1, 98, 87, 0.08);
  overflow: hidden;
}

.frm_forms.with_frm_style fieldset {
  border: 0 !important;
  background: transparent !important;
  padding: 26px !important;
  margin: 0 !important;
}

.frm_forms.with_frm_style .frm_form_field {
  margin-bottom: 22px !important;
}

.frm_forms.with_frm_style .frm_primary_label {
  color: var(--hm-green) !important;
  display: block;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.frm_forms.with_frm_style textarea {
  min-height: 260px !important;
  width: 100% !important;
  background: #f7fbfa !important;
  border: 1px solid #dcefeb !important;
  border-radius: 10px !important;
  color: #333333 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  padding: 16px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
  resize: vertical;
}

.frm_forms.with_frm_style textarea:focus {
  background: #ffffff !important;
  border-color: var(--hm-green) !important;
  box-shadow: 0 0 0 3px rgba(1, 98, 87, 0.1) !important;
  outline: none !important;
}

/* ---------------------------------------------------------
   Formidable file upload/dropzone
   --------------------------------------------------------- */

.frm_forms.with_frm_style .frm_dropzone {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 98, 87, 0.08),
      transparent 260px
    ),
    #f7fbfa !important;
  border: 2px dashed #9fc9c1 !important;
  border-radius: 12px !important;
  color: #333333 !important;
  padding: 28px 20px !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.frm_forms.with_frm_style .frm_dropzone:hover {
  background: #ffffff !important;
  border-color: var(--hm-green) !important;
  box-shadow: 0 10px 22px rgba(1, 98, 87, 0.08);
}

.frm_forms.with_frm_style .frm_dropzone .frmsvg,
.frm_forms.with_frm_style .frm_dropzone svg {
  fill: var(--hm-green) !important;
  color: var(--hm-green) !important;
}

.frm_forms.with_frm_style .frm_upload_text button,
.frm_forms.with_frm_style .frm_compact_text button {
  color: var(--hm-green) !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 900 !important;
  text-decoration: underline;
  cursor: pointer;
}

.frm_forms.with_frm_style .frm_small_text,
.frm_forms.with_frm_style .frm_small_text p {
  color: #777777 !important;
  font-size: 12px !important;
  margin-top: 8px !important;
}

/* ---------------------------------------------------------
   Formidable submit button
   --------------------------------------------------------- */

.frm_forms.with_frm_style .frm_submit {
  background: #f3f8f7;
  border-top: 1px solid #dcefeb;
  margin: 26px -26px -26px !important;
  padding: 20px 26px !important;
  text-align: right;
}

.frm_forms.with_frm_style .frm_final_submit,
.frm_forms.with_frm_style input[type="submit"] {
  background: var(--hm-green) !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.2 !important;
  padding: 12px 22px !important;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.frm_forms.with_frm_style .frm_final_submit:hover,
.frm_forms.with_frm_style input[type="submit"]:hover {
  background: var(--hm-green-dark) !important;
  border-color: var(--hm-green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.2);
}

/* ---------------------------------------------------------
   Journal History button
   --------------------------------------------------------- */

.et_pb_button[href*="formidable-entries"] {
  background: #ffffff !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: 999px !important;
  color: var(--hm-green) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  padding: 12px 20px !important;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.08);
}

.et_pb_button[href*="formidable-entries"]:hover {
  background: var(--hm-green) !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
}

/* ---------------------------------------------------------
   Previous Entries archive: card + accordion UX
   --------------------------------------------------------- */

.frm_collapse {
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(1, 98, 87, 0.08);
  margin-top: 18px;
  overflow: hidden;
}

.et_pb_text_inner h4 + p + .frm_collapse,
.et_pb_text_inner h4 + .frm_collapse {
  margin-top: 12px;
}

.et_pb_text_inner h4 {
  color: var(--hm-green);
  font-size: 20px;
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 12px;
}

.frm_year_heading,
.frm_month_heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0 !important;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.frm_year_heading {
  background: var(--hm-green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 15px 18px !important;
}

.frm_year_heading:hover {
  background: var(--hm-green-dark);
}

.frm_year_heading a {
  color: #ffffff !important;
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
}

.frm_month_heading {
  background: #f3f8f7;
  border-bottom: 1px solid #dcefeb;
  color: var(--hm-green);
  padding: 12px 18px 12px 34px !important;
}

.frm_month_heading:hover {
  background: #e7f3f0;
}

.frm_month_heading a {
  color: var(--hm-green) !important;
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
}

/* Replace old jQuery UI triangle feel with cleaner indicators */
.frm_year_heading .ui-icon,
.frm_month_heading .ui-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-image: none !important;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 22px;
  margin: 0 !important;
  text-indent: 0 !important;
  width: 22px;
}

.frm_year_heading .ui-icon {
  background: rgba(255, 255, 255, 0.14);
}

.frm_month_heading .ui-icon {
  background: rgba(1, 98, 87, 0.08);
}

.frm_year_heading .ui-icon:before,
.frm_month_heading .ui-icon:before {
  content: "+";
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.frm_year_heading .ui-icon-triangle-1-s:before,
.frm_month_heading .ui-icon-triangle-1-s:before {
  content: "–";
}

.frm_year_heading .ui-icon:before {
  color: #ffffff;
}

.frm_month_heading .ui-icon:before {
  color: var(--hm-green);
}

/* Entry date listing */
.frm_toggle_container {
  margin: 0 !important;
}

.frm_month_listing {
  background: #ffffff;
  border-bottom: 1px solid #edf4f2;
  padding: 14px 18px 16px 54px !important;
}

.frm_month_listing ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.frm_month_listing li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.frm_month_listing li:before {
  display: none !important;
}

.frm_month_listing a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7fbfa;
  border: 1px solid #dcefeb;
  border-radius: 999px;
  color: var(--hm-green) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-height: 32px;
  padding: 9px 12px;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.frm_month_listing a:hover {
  background: var(--hm-green);
  border-color: var(--hm-green);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(1, 98, 87, 0.14);
}

/* Keep hidden Formidable containers hidden */
.frm_hidden {
  display: none !important;
}

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

@media (max-width: 767px) {
  body.single-tribe_events .tribe-events-schedule {
    padding: 16px !important;
  }

  body.single-tribe_events .tribe-events-schedule > div {
    display: block !important;
  }

  body.single-tribe_events .tribe-events-schedule .tribe-event-date-start,
  body.single-tribe_events .tribe-events-schedule .tribe-event-date-end {
    display: block;
    width: 100%;
    margin: 6px 0;
    text-align: center;
  }

  .frm_forms.with_frm_style fieldset {
    padding: 20px !important;
  }

  .frm_forms.with_frm_style .frm_submit {
    margin: 22px -20px -20px !important;
    padding: 18px 20px !important;
    text-align: center;
  }

  .frm_forms.with_frm_style .frm_final_submit,
  .frm_forms.with_frm_style input[type="submit"],
  .et_pb_button[href*="formidable-entries"] {
    width: 100%;
    text-align: center;
  }

  .frm_month_listing {
    padding: 14px 16px !important;
  }

  .frm_month_listing a {
    width: 100%;
  }
}

/* =========================================================
   Hacienda WP-Members Login / Staff Info Box
   ========================================================= */

/* Center and card-wrap the logged-out login area */
#wpmem_login {
  max-width: 620px !important;
  margin: 26px auto 28px !important;
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-top: 5px solid var(--hm-green);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(1, 98, 87, 0.1);
  overflow: hidden;
}

/* Style the intro text directly above the login box */
.et_pb_text_inner h3:has(+ h3),
.et_pb_text_inner h3:has(+ p + #wpmem_login),
.et_pb_text_inner h3 + h3 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.et_pb_text_inner h3:first-of-type {
  color: var(--hm-green);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 8px;
}

.et_pb_text_inner h3:nth-of-type(2) {
  color: #4d5f5c;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 22px;
}

/* WP-Members fieldset */
#wpmem_login fieldset {
  border: 0 !important;
  background: transparent !important;
  padding: 28px !important;
  margin: 0 !important;
}

/* Legend header */
#wpmem_login legend {
  display: block;
  width: calc(100% + 56px);
  margin: -28px -28px 24px !important;
  padding: 18px 28px !important;
  background: linear-gradient(
    90deg,
    rgba(1, 98, 87, 0.08),
    rgba(1, 98, 87, 0.14)
  );
  border-bottom: 1px solid #dcefeb;
  color: var(--hm-green) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

#wpmem_login legend:before {
  content: "●";
  color: #4a968b;
  font-size: 14px;
  margin-right: 9px;
  vertical-align: 1px;
}

/* Labels */
#wpmem_login label {
  display: block;
  color: var(--hm-green) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Input wrappers */
#wpmem_login .div_text {
  margin-bottom: 18px;
}

/* Inputs */
#wpmem_login input[type="text"],
#wpmem_login input[type="password"],
#wpmem_login input[type="email"] {
  width: 100% !important;
  min-height: 46px;
  background: #f7fbfa !important;
  border: 1px solid #dcefeb !important;
  border-radius: 10px !important;
  color: #333333 !important;
  font-size: 15px !important;
  line-height: 1.4;
  padding: 11px 14px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
}

#wpmem_login input[type="text"]:focus,
#wpmem_login input[type="password"]:focus,
#wpmem_login input[type="email"]:focus {
  background: #ffffff !important;
  border-color: var(--hm-green) !important;
  box-shadow: 0 0 0 3px rgba(1, 98, 87, 0.1) !important;
  outline: none !important;
}

/* Bottom button row */
#wpmem_login .button_div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #f3f8f7;
  border-top: 1px solid #dcefeb;
  margin: 26px -28px -28px !important;
  padding: 20px 28px !important;
}

/* Remember me */
#wpmem_login input[type="checkbox"] {
  accent-color: var(--hm-green);
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: -3px;
}

#wpmem_login .button_div label[for="rememberme"] {
  display: inline-block;
  color: #4d5f5c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

/* Login button */
#wpmem_login input[type="submit"],
#wpmem_login .buttons {
  background: var(--hm-green) !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.2 !important;
  padding: 12px 24px !important;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#wpmem_login input[type="submit"]:hover,
#wpmem_login .buttons:hover {
  background: var(--hm-green-dark) !important;
  border-color: var(--hm-green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.2);
}

/* Confidential message below login */
#wpmem_login + p + h4 span[style*="color: #ff0000"],
#wpmem_login + h4 span[style*="color: #ff0000"],
.et_pb_text_inner h4 span[style*="color: #ff0000"] {
  display: block;
  max-width: 760px;
  margin: 24px auto 0;
  background: #fff5f5;
  border: 1px solid #f1c6c6;
  border-left: 5px solid #cc3333;
  border-radius: 10px;
  color: #a51f1f !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  padding: 14px 16px;
}

/* Mobile */
@media (max-width: 767px) {
  #wpmem_login {
    max-width: 100% !important;
    margin-top: 22px !important;
  }

  #wpmem_login fieldset {
    padding: 22px !important;
  }

  #wpmem_login legend {
    width: calc(100% + 44px);
    margin: -22px -22px 22px !important;
    padding: 16px 22px !important;
    font-size: 18px !important;
  }

  #wpmem_login .button_div {
    display: block;
    margin: 22px -22px -22px !important;
    padding: 18px 22px !important;
    text-align: center;
  }

  #wpmem_login input[type="submit"],
  #wpmem_login .buttons {
    display: block;
    width: 100%;
    margin-top: 14px;
  }

  .et_pb_text_inner h3:first-of-type {
    font-size: 24px;
  }

  .et_pb_text_inner h3:nth-of-type(2) {
    font-size: 15px;
  }
}

/* =========================================================
   Hacienda Final Polish:
   Header Nav, Page Titles, Toggle Archives, Residents Table
   ========================================================= */

/* ---------------------------------------------------------
   Header nav: cleaner, centered, no side borders
   --------------------------------------------------------- */

.hm-main-menu-section {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--hm-green) !important;
  background: #ffffff !important;
}

.hm-main-menu-section .et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
}

.hm-main-menu-section .et_pb_menu {
  width: 100% !important;
}

.hm-main-menu-section .et_pb_menu_inner_container,
.hm-main-menu-section .et_pb_menu__wrap,
.hm-main-menu-section .et-menu-nav,
.hm-main-menu-section .et-menu {
  width: 100% !important;
}

.hm-main-menu-section .et_pb_menu__wrap {
  justify-content: center !important;
}

.hm-main-menu-section .et-menu {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 2px;
}

.hm-main-menu-section .et-menu > li {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hm-main-menu-section .et-menu > li > a {
  color: var(--hm-green) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 13px !important;
  border-top: 3px solid transparent;
  text-decoration: none !important;
  white-space: nowrap;
}

.hm-main-menu-section .et-menu > li > a:hover,
.hm-main-menu-section .et-menu > li.current-menu-item > a,
.hm-main-menu-section .et-menu > li.current-menu-ancestor > a {
  color: var(--hm-green-dark) !important;
  background: #f3f8f7 !important;
  border-top-color: var(--hm-green);
  opacity: 1 !important;
}

/* Avoid Divi blue or inherited odd borders */
.hm-main-menu-section .et_pb_menu,
.hm-main-menu-section .et_pb_menu_inner_container,
.hm-main-menu-section .et_pb_menu__wrap,
.hm-main-menu-section .et_pb_menu__menu,
.hm-main-menu-section .et-menu-nav,
.hm-main-menu-section .et-menu {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Desktop submenu remains compact */
.hm-main-menu-section .et-menu-nav ul.sub-menu {
  border-top-color: var(--hm-green) !important;
}

.hm-main-menu-section .et-menu-nav ul.sub-menu li a {
  font-weight: 600 !important;
  letter-spacing: 0;
}

/* ---------------------------------------------------------
   Event Calendar page title:
   Hacienda Events Calendar
   --------------------------------------------------------- */

.tribe-events-before-html {
  margin: 0 0 34px !important;
  padding: 0 !important;
}

.tribe-events-before-html h1 {
  max-width: 760px;
  margin: 0 auto 30px !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(1, 98, 87, 0.1),
      transparent 260px
    ),
    linear-gradient(135deg, #ffffff 0%, #f7fbfa 100%);
  border: 1px solid #dcefeb;
  border-left: 6px solid var(--hm-green);
  border-radius: 14px;
  color: var(--hm-green) !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  padding: 26px 28px !important;
  text-align: center !important;
  box-shadow: 0 14px 32px rgba(1, 98, 87, 0.08);
}

.tribe-events-before-html h1:after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  background: #4a968b;
  border-radius: 999px;
  margin: 14px auto 0;
}

/* ---------------------------------------------------------
   General protected page titles, including Residents Index
   --------------------------------------------------------- */

.hm-post-content .et_pb_text_inner > h2,
.hm-post-content h2[style*="text-align: center"],
.et_pb_post_content h2[style*="text-align: center"] {
  max-width: 760px;
  margin: 0 auto 30px !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(1, 98, 87, 0.1),
      transparent 260px
    ),
    linear-gradient(135deg, #ffffff 0%, #f7fbfa 100%);
  border: 1px solid #dcefeb;
  border-left: 6px solid var(--hm-green);
  border-radius: 14px;
  color: var(--hm-green) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  padding: 24px 28px !important;
  text-align: center !important;
  box-shadow: 0 14px 32px rgba(1, 98, 87, 0.08);
}

.hm-post-content .et_pb_text_inner > h2:after,
.hm-post-content h2[style*="text-align: center"]:after,
.et_pb_post_content h2[style*="text-align: center"]:after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: #4a968b;
  border-radius: 999px;
  margin: 13px auto 0;
}

/* Confidential label inside centered headings */
.hm-post-content h2 span[style*="color: #ff0000"],
.et_pb_post_content h2 span[style*="color: #ff0000"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
  border: 1px solid #f1c6c6;
  border-radius: 999px;
  color: #a51f1f !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  margin-top: 12px;
  padding: 8px 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------
   Spreadsheet / document archive toggles
   Used by year/month Google Sheets lists
   --------------------------------------------------------- */

.hm-post-content .et_pb_toggle {
  background: #ffffff !important;
  border: 1px solid #dcefeb !important;
  border-radius: 12px !important;
  margin-bottom: 14px !important;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(1, 98, 87, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.hm-post-content .et_pb_toggle:hover {
  border-color: rgba(1, 98, 87, 0.24) !important;
  box-shadow: 0 14px 30px rgba(1, 98, 87, 0.1);
  transform: translateY(-1px);
}

.hm-post-content .et_pb_toggle_title {
  background: linear-gradient(90deg, var(--hm-green), var(--hm-green-dark));
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  line-height: 1.2 !important;
  padding: 17px 56px 17px 22px !important;
  text-transform: uppercase;
}

.hm-post-content .et_pb_toggle_title:before {
  color: #ffffff !important;
  right: 22px !important;
  font-size: 22px !important;
}

.hm-post-content .et_pb_toggle_open .et_pb_toggle_title {
  background: linear-gradient(90deg, var(--hm-green-dark), var(--hm-green));
}

.hm-post-content .et_pb_toggle_content {
  background: #ffffff;
  padding: 22px !important;
}

/* Turn month links into a clean grid */
.hm-post-content .et_pb_toggle_content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 10px;
}

.hm-post-content .et_pb_toggle_content h4,
.hm-post-content .et_pb_toggle_content p {
  margin: 0 !important;
  padding: 0 !important;
}

.hm-post-content .et_pb_toggle_content h4 a,
.hm-post-content .et_pb_toggle_content p a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  background: #f7fbfa;
  border: 1px solid #dcefeb;
  border-radius: 10px;
  color: var(--hm-green) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  padding: 12px 13px;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.hm-post-content .et_pb_toggle_content h4 a:after,
.hm-post-content .et_pb_toggle_content p a:after {
  content: "↗";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(1, 98, 87, 0.08);
  color: var(--hm-green);
  font-size: 12px;
  flex: 0 0 auto;
}

.hm-post-content .et_pb_toggle_content h4 a:hover,
.hm-post-content .et_pb_toggle_content p a:hover {
  background: var(--hm-green);
  border-color: var(--hm-green);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.16);
}

.hm-post-content .et_pb_toggle_content h4 a:hover:after,
.hm-post-content .et_pb_toggle_content p a:hover:after {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Remove empty spacer paragraphs in those toggle lists */
.hm-post-content .et_pb_toggle_content p:empty,
.hm-post-content .et_pb_toggle_content p:has(>&nbsp;) {
  display: none;
}

/* Standalone Google Sheet links below toggles */
.hm-post-content .et_pb_text_inner > h4 a[href*="docs.google.com"],
.et_pb_post_content .et_pb_text_inner > h4 a[href*="docs.google.com"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-left: 5px solid var(--hm-green);
  border-radius: 12px;
  color: var(--hm-green) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25;
  margin-bottom: 10px;
  padding: 14px 16px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(1, 98, 87, 0.06);
}

.hm-post-content .et_pb_text_inner > h4 a[href*="docs.google.com"]:after,
.et_pb_post_content .et_pb_text_inner > h4 a[href*="docs.google.com"]:after {
  content: "Open";
  background: #f3f8f7;
  border: 1px solid #dcefeb;
  border-radius: 999px;
  color: var(--hm-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-left: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.hm-post-content .et_pb_text_inner > h4 a[href*="docs.google.com"]:hover,
.et_pb_post_content .et_pb_text_inner > h4 a[href*="docs.google.com"]:hover {
  background: #f7fbfa;
  border-left-color: var(--hm-green-dark);
  color: var(--hm-green-dark) !important;
}

/* ---------------------------------------------------------
   Residents Index / TablePress / DataTables styling
   --------------------------------------------------------- */

.hm-post-content .dt-container,
.et_pb_post_content .dt-container {
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(1, 98, 87, 0.08);
  overflow: hidden;
  margin: 24px 0 34px;
}

/* Top DataTables controls row */
.hm-post-content .dt-layout-row:first-child,
.et_pb_post_content .dt-layout-row:first-child {
  background: linear-gradient(90deg, #f7fbfa, #ffffff);
  border-bottom: 1px solid #dcefeb;
  padding: 18px 20px;
}

.hm-post-content .dt-layout-row,
.et_pb_post_content .dt-layout-row {
  margin: 0 !important;
}

/* Search box */
.hm-post-content .dt-search,
.et_pb_post_content .dt-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hm-post-content .dt-search label,
.et_pb_post_content .dt-search label {
  color: var(--hm-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hm-post-content .dt-search input.dt-input,
.et_pb_post_content .dt-search input.dt-input,
.hm-post-content .dt-search input[type="search"],
.et_pb_post_content .dt-search input[type="search"] {
  min-width: 230px;
  min-height: 40px;
  background: #ffffff !important;
  border: 1px solid #cfe6e1 !important;
  border-radius: 999px !important;
  color: #333333 !important;
  font-size: 14px !important;
  padding: 9px 14px !important;
  box-shadow: none !important;
}

.hm-post-content .dt-search input.dt-input:focus,
.et_pb_post_content .dt-search input.dt-input:focus,
.hm-post-content .dt-search input[type="search"]:focus,
.et_pb_post_content .dt-search input[type="search"]:focus {
  border-color: var(--hm-green) !important;
  box-shadow: 0 0 0 3px rgba(1, 98, 87, 0.1) !important;
  outline: none !important;
}

/* Table wrapper */
.hm-post-content .dt-layout-table,
.et_pb_post_content .dt-layout-table {
  overflow-x: auto;
}

.hm-post-content table.tablepress,
.et_pb_post_content table.tablepress {
  margin: 0 !important;
  border: 0 !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13px;
}

.hm-post-content table.tablepress thead th,
.et_pb_post_content table.tablepress thead th {
  background: var(--hm-green) !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.25;
  padding: 14px 12px !important;
  text-transform: uppercase;
  vertical-align: middle;
}

.hm-post-content table.tablepress thead th:last-child,
.et_pb_post_content table.tablepress thead th:last-child {
  border-right: 0 !important;
}

.hm-post-content table.tablepress tbody td,
.et_pb_post_content table.tablepress tbody td {
  background: #ffffff;
  border: 0 !important;
  border-bottom: 1px solid #edf4f2 !important;
  color: #333333;
  padding: 13px 12px !important;
  vertical-align: top;
}

.hm-post-content table.tablepress tbody tr:nth-child(even) td,
.et_pb_post_content table.tablepress tbody tr:nth-child(even) td {
  background: #f7fbfa;
}

.hm-post-content table.tablepress tbody tr:hover td,
.et_pb_post_content table.tablepress tbody tr:hover td {
  background: #eef7f5;
}

/* Space column as small badge */
.hm-post-content table.tablepress tbody td.column-1,
.et_pb_post_content table.tablepress tbody td.column-1 {
  color: var(--hm-green);
  font-weight: 900;
}

/* Sorting indicator color */
.hm-post-content .dt-column-order,
.et_pb_post_content .dt-column-order {
  color: #ffffff !important;
  opacity: 0.9;
}

/* Hide TablePress edit caption on front end unless admin bar is visible */
body:not(.admin-bar) .hm-post-content table.tablepress caption,
body:not(.admin-bar) .et_pb_post_content table.tablepress caption {
  display: none !important;
}

/* Bottom DataTables row */
.hm-post-content .dt-layout-row:last-child,
.et_pb_post_content .dt-layout-row:last-child {
  background: #f7fbfa;
  border-top: 1px solid #dcefeb;
  padding: 14px 20px;
}

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

@media (max-width: 1100px) {
  .hm-main-menu-section .et-menu > li > a {
    font-size: 13px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

@media (max-width: 980px) {
  .hm-main-menu-section .et-menu {
    flex-wrap: wrap !important;
  }

  .tribe-events-before-html h1,
  .hm-post-content .et_pb_text_inner > h2,
  .hm-post-content h2[style*="text-align: center"],
  .et_pb_post_content h2[style*="text-align: center"] {
    font-size: 25px !important;
    padding: 21px 22px !important;
    margin-bottom: 24px !important;
  }

  .hm-post-content .et_pb_toggle_content {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    padding: 18px !important;
  }

  .hm-post-content .dt-search,
  .et_pb_post_content .dt-search {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hm-post-content .dt-search input.dt-input,
  .et_pb_post_content .dt-search input.dt-input,
  .hm-post-content .dt-search input[type="search"],
  .et_pb_post_content .dt-search input[type="search"] {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .tribe-events-before-html h1,
  .hm-post-content .et_pb_text_inner > h2,
  .hm-post-content h2[style*="text-align: center"],
  .et_pb_post_content h2[style*="text-align: center"] {
    font-size: 22px !important;
    border-left-width: 4px;
    padding: 18px 18px !important;
  }

  .hm-post-content .et_pb_toggle_title {
    font-size: 16px !important;
    padding: 15px 48px 15px 18px !important;
  }

  .hm-post-content .et_pb_toggle_content {
    grid-template-columns: 1fr;
  }

  .hm-post-content .et_pb_text_inner > h4 a[href*="docs.google.com"],
  .et_pb_post_content .et_pb_text_inner > h4 a[href*="docs.google.com"] {
    display: block;
  }

  .hm-post-content .et_pb_text_inner > h4 a[href*="docs.google.com"]:after,
  .et_pb_post_content .et_pb_text_inner > h4 a[href*="docs.google.com"]:after {
    display: inline-flex;
    margin-left: 0;
    margin-top: 10px;
  }
}

/* =========================================================
   Hacienda v1.4: Tight Page Titles + Residents/Table Spacing
   Additions placed last to override earlier title-card rules.
   ========================================================= */

/* ---------------------------------------------------------
   Remove migrated Divi divider lines around page titles
   --------------------------------------------------------- */

.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_divider,
.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_divider:before,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_divider,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_divider:before {
  display: none !important;
  border: 0 !important;
}

/* Tighten the title section/row generated by migrated pages */
.hm-post-content .et_builder_inner_content > .et_pb_section:first-child,
.et_pb_post_content .et_builder_inner_content > .et_pb_section:first-child {
  padding-top: 0 !important;
  padding-bottom: 6px !important;
}

.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_row,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_module,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_module {
  margin-bottom: 0 !important;
}

/* Remove empty paragraph spacing commonly left by Avada/Fusion migration */
.hm-post-content .et_pb_text_inner > p:empty,
.et_pb_post_content .et_pb_text_inner > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------
   Consistent page title treatment: no gray box/borders
   Applies to Residents Index, Rent Registers, Management Journal, etc.
   --------------------------------------------------------- */

.hm-post-content .et_pb_text_inner > h1,
.hm-post-content .et_pb_text_inner > h2,
.et_pb_post_content .et_pb_text_inner > h1,
.et_pb_post_content .et_pb_text_inner > h2,
.hm-post-content h1[style*="text-align: center"],
.hm-post-content h2[style*="text-align: center"],
.et_pb_post_content h1[style*="text-align: center"],
.et_pb_post_content h2[style*="text-align: center"] {
  max-width: 820px;
  margin: 0 auto 14px !important;
  padding: 0 0 13px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--hm-green) !important;
  font-size: 31px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  text-align: center !important;
  letter-spacing: -0.01em;
  position: relative;
}

/* Green underline only, no gray divider */
.hm-post-content .et_pb_text_inner > h1:after,
.hm-post-content .et_pb_text_inner > h2:after,
.et_pb_post_content .et_pb_text_inner > h1:after,
.et_pb_post_content .et_pb_text_inner > h2:after,
.hm-post-content h1[style*="text-align: center"]:after,
.hm-post-content h2[style*="text-align: center"]:after,
.et_pb_post_content h1[style*="text-align: center"]:after,
.et_pb_post_content h2[style*="text-align: center"]:after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  background: var(--hm-green-light, #4a968b);
  border-radius: 999px;
  margin: 13px auto 0;
}

/* Confidential badge inside page title, e.g. RESIDENTS INDEX (Confidential) */
.hm-post-content h1 span[style*="color: #ff0000"],
.hm-post-content h2 span[style*="color: #ff0000"],
.et_pb_post_content h1 span[style*="color: #ff0000"],
.et_pb_post_content h2 span[style*="color: #ff0000"],
.hm-post-content h1 span[style*="color:#ff0000"],
.hm-post-content h2 span[style*="color:#ff0000"],
.et_pb_post_content h1 span[style*="color:#ff0000"],
.et_pb_post_content h2 span[style*="color:#ff0000"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
  border: 1px solid #f1c6c6;
  border-radius: 999px;
  color: #a51f1f !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin-top: 11px;
  padding: 8px 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Confidential notice directly under titles, e.g. Rent Registers page */
.hm-post-content .et_pb_text_inner > h1 + h4,
.hm-post-content .et_pb_text_inner > h2 + h4,
.et_pb_post_content .et_pb_text_inner > h1 + h4,
.et_pb_post_content .et_pb_text_inner > h2 + h4 {
  max-width: 820px;
  margin: 0 auto 18px !important;
  padding: 0 !important;
}

.hm-post-content .et_pb_text_inner > h1 + h4 span[style*="color: #ff0000"],
.hm-post-content .et_pb_text_inner > h2 + h4 span[style*="color: #ff0000"],
.et_pb_post_content .et_pb_text_inner > h1 + h4 span[style*="color: #ff0000"],
.et_pb_post_content .et_pb_text_inner > h2 + h4 span[style*="color: #ff0000"],
.hm-post-content .et_pb_text_inner > h1 + h4 span[style*="color:#ff0000"],
.hm-post-content .et_pb_text_inner > h2 + h4 span[style*="color:#ff0000"],
.et_pb_post_content .et_pb_text_inner > h1 + h4 span[style*="color:#ff0000"],
.et_pb_post_content .et_pb_text_inner > h2 + h4 span[style*="color:#ff0000"] {
  max-width: none !important;
  margin: 0 !important;
}

/* ---------------------------------------------------------
   Events calendar title: match same title style, tighter below
   --------------------------------------------------------- */

.tribe-events-before-html {
  margin: 0 0 20px !important;
  padding: 0 !important;
}

.tribe-events-before-html h1 {
  max-width: 820px;
  margin: 0 auto 16px !important;
  padding: 0 0 13px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--hm-green) !important;
  font-size: 32px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  text-align: center !important;
}

.tribe-events-before-html h1:after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  background: var(--hm-green-light, #4a968b);
  border-radius: 999px;
  margin: 13px auto 0;
}

/* ---------------------------------------------------------
   Residents Index / TablePress spacing: bring table closer
   --------------------------------------------------------- */

/* The section after the title should not add a large blank gap */
.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  + .et_pb_section,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  + .et_pb_section {
  padding-top: 4px !important;
}

.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  + .et_pb_section
  .et_pb_row:first-child,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  + .et_pb_section
  .et_pb_row:first-child {
  padding-top: 0 !important;
}

/* TablePress/DataTables: reduced top margin under title */
.hm-post-content .dt-container,
.et_pb_post_content .dt-container {
  margin-top: 10px !important;
  margin-bottom: 30px !important;
}

/* Slightly tighter DataTables search/header row */
.hm-post-content .dt-layout-row:first-child,
.et_pb_post_content .dt-layout-row:first-child {
  padding: 13px 18px !important;
}

/* Tighter if title is immediately followed by a table wrapper */
.hm-post-content .et_pb_text_inner > h2 + .dt-container,
.hm-post-content .et_pb_text_inner > h1 + .dt-container,
.et_pb_post_content .et_pb_text_inner > h2 + .dt-container,
.et_pb_post_content .et_pb_text_inner > h1 + .dt-container {
  margin-top: 8px !important;
}

/* ---------------------------------------------------------
   Reduce migrated section/row whitespace in post content
   without hurting the Theme Builder shell.
   --------------------------------------------------------- */

.hm-post-content .et-l--post .et_pb_section,
.et_pb_post_content .et-l--post .et_pb_section {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.hm-post-content .et-l--post .et_pb_row,
.et_pb_post_content .et-l--post .et_pb_row {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Do not let empty migrated dividers create gray lines or vertical space */
.hm-post-content .et-l--post .et_pb_divider.et_pb_divider_position_,
.et_pb_post_content .et-l--post .et_pb_divider.et_pb_divider_position_ {
  margin: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.hm-post-content .et-l--post .et_pb_divider.et_pb_divider_position_:before,
.et_pb_post_content .et-l--post .et_pb_divider.et_pb_divider_position_:before {
  display: none !important;
}

/* ---------------------------------------------------------
   Mobile title tightening
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .hm-post-content .et_pb_text_inner > h1,
  .hm-post-content .et_pb_text_inner > h2,
  .et_pb_post_content .et_pb_text_inner > h1,
  .et_pb_post_content .et_pb_text_inner > h2,
  .tribe-events-before-html h1 {
    font-size: 26px !important;
    margin-bottom: 13px !important;
    padding-bottom: 12px !important;
  }

  .hm-post-content .dt-container,
  .et_pb_post_content .dt-container {
    margin-top: 8px !important;
  }
}

@media (max-width: 640px) {
  .hm-post-content .et_pb_text_inner > h1,
  .hm-post-content .et_pb_text_inner > h2,
  .et_pb_post_content .et_pb_text_inner > h1,
  .et_pb_post_content .et_pb_text_inner > h2,
  .tribe-events-before-html h1 {
    font-size: 23px !important;
  }
}

/* =========================================================
   Hacienda v1.5: Enhanced Footer
   Works with Hacienda Enhanced Global Footer JSON.
   ========================================================= */

.hm-site-footer.hm-site-footer-enhanced,
.hm-site-footer-enhanced {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 98, 87, 0.28),
      transparent 360px
    ),
    linear-gradient(135deg, #2f3334 0%, #252829 100%) !important;
  border-top: 4px solid var(--hm-green) !important;
  color: #d9dfdd !important;
  padding: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hm-site-footer-enhanced .et_pb_row {
  width: 94% !important;
  max-width: 1100px !important;
}

.hm-site-footer-enhanced .hm-footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hm-site-footer-enhanced .et_pb_column {
  margin-bottom: 0 !important;
}

.hm-site-footer-enhanced,
.hm-site-footer-enhanced p,
.hm-site-footer-enhanced li,
.hm-site-footer-enhanced .et_pb_text,
.hm-site-footer-enhanced .et_pb_text_inner {
  color: #d9dfdd !important;
  font-size: 13px !important;
  line-height: 1.65;
}

.hm-site-footer-enhanced p {
  padding-bottom: 8px !important;
}

.hm-site-footer-enhanced a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.hm-site-footer-enhanced a:hover {
  color: #dcefeb !important;
  text-decoration: none !important;
}

.hm-footer-brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 98, 87, 0.28);
  border: 1px solid rgba(220, 239, 235, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  margin-bottom: 14px;
  padding: 9px 13px;
  text-transform: uppercase;
}

.hm-footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 4px;
}

.hm-site-footer-enhanced h4,
.hm-footer-links h4,
.hm-footer-help h4 {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  position: relative;
  text-transform: uppercase;
}

.hm-site-footer-enhanced h4:after,
.hm-footer-links h4:after,
.hm-footer-help h4:after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: #4a968b;
  border-radius: 999px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.hm-footer-links ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hm-footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hm-footer-links li + li {
  margin-top: 8px !important;
}

.hm-footer-links li a {
  display: inline-flex;
  align-items: center;
  color: #d9dfdd !important;
  font-weight: 700;
  line-height: 1.35;
}

.hm-footer-links li a:before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(1, 98, 87, 0.28);
  border-radius: 50%;
  color: #dcefeb;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  margin-right: 8px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.hm-footer-links li a:hover {
  color: #ffffff !important;
}

.hm-footer-links li a:hover:before {
  background: var(--hm-green);
  color: #ffffff;
  transform: translateX(2px);
}

.hm-footer-search-form {
  margin: 10px 0 14px !important;
  padding: 0 !important;
}

.hm-footer-search-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.hm-footer-search-form input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 40px;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(220, 239, 235, 0.22) !important;
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 40px !important;
  padding: 0 12px !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.hm-footer-search-form input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.hm-footer-search-form input[type="search"]:focus {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(220, 239, 235, 0.52) !important;
}

.hm-footer-search-form button {
  flex: 0 0 auto;
  height: 40px;
  background: var(--hm-green) !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: 0 8px 8px 0 !important;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 38px !important;
  padding: 0 12px !important;
  text-transform: uppercase;
}

.hm-footer-search-form button:hover {
  background: var(--hm-green-dark) !important;
  border-color: var(--hm-green-dark) !important;
}

.hm-footer-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 999px;
  color: var(--hm-green) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-top: 4px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.hm-footer-button:hover {
  background: #dcefeb !important;
  border-color: #dcefeb !important;
  color: var(--hm-green-dark) !important;
  transform: translateY(-1px);
}

.hm-footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hm-footer-copyright,
.hm-footer-copyright .et_pb_text_inner,
.hm-footer-copyright p {
  color: #cfd6d4 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.hm-footer-copyright span {
  color: rgba(207, 214, 212, 0.72);
}

@media (max-width: 980px) {
  .hm-site-footer-enhanced .hm-footer-main {
    padding-top: 30px !important;
    padding-bottom: 18px !important;
  }

  .hm-site-footer-enhanced .et_pb_column {
    margin-bottom: 24px !important;
  }

  .hm-site-footer-enhanced h4,
  .hm-footer-links h4,
  .hm-footer-help h4 {
    margin-bottom: 13px !important;
  }

  .hm-footer-search-inner {
    max-width: 420px;
  }

  .hm-footer-copyright,
  .hm-footer-copyright .et_pb_text_inner {
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .hm-site-footer-enhanced .hm-footer-main {
    padding-top: 26px !important;
    padding-bottom: 12px !important;
  }

  .hm-footer-brandmark {
    margin-bottom: 10px;
  }

  .hm-footer-search-inner {
    display: block;
  }

  .hm-footer-search-form input[type="search"] {
    border-right: 1px solid rgba(220, 239, 235, 0.22) !important;
    border-radius: 8px !important;
    margin-bottom: 8px;
  }

  .hm-footer-search-form button {
    width: 100%;
    border-radius: 8px !important;
  }

  .hm-footer-button {
    width: 100%;
  }
}

/* =========================================================
   Hacienda v1.6: Unified Upscale Management Design System
   This final layer harmonizes header, content, sidebar, forms,
   tables, and footer. It intentionally comes last.
   ========================================================= */

:root {
  --hm-green: #016257;
  --hm-green-dark: #014d44;
  --hm-green-deep: #102a27;
  --hm-green-light: #4a968b;
  --hm-mint: #dcefeb;
  --hm-mint-soft: #f3f8f7;
  --hm-soft-green: #f7fbfa;
  --hm-ivory: #fbfcfa;
  --hm-text: #465350;
  --hm-muted: #74817e;
  --hm-heading: #016257;
  --hm-border: #dcefeb;
  --hm-border-soft: #edf4f2;
  --hm-danger: #a51f1f;
  --hm-radius-lg: 14px;
  --hm-radius-md: 10px;
  --hm-shadow-sm: 0 8px 20px rgba(1, 98, 87, 0.06);
  --hm-shadow-md: 0 14px 34px rgba(1, 98, 87, 0.09);
  --hm-shadow-lg: 0 20px 44px rgba(1, 98, 87, 0.12);
}

body,
#page-container,
.et_pb_text,
.et_pb_module,
input,
textarea,
select,
button {
  color: var(--hm-text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #ffffff;
}

a,
.et_pb_text a,
.entry-content a {
  color: var(--hm-green);
}

a:hover,
.et_pb_text a:hover,
.entry-content a:hover {
  color: var(--hm-green-dark);
}

/* Shared refined controls */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea,
select {
  border-color: var(--hm-border) !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--hm-green) !important;
  box-shadow: 0 0 0 3px rgba(1, 98, 87, 0.1) !important;
  outline: 0 !important;
}

/* ---------------------------------------------------------
   Header: centered, elegant, no stray borders/blue
   --------------------------------------------------------- */

.hm-top-strip {
  background: linear-gradient(
    90deg,
    var(--hm-green-dark),
    var(--hm-green)
  ) !important;
  border-bottom: 0 !important;
}

.hm-logo-header {
  background: #ffffff !important;
}

.hm-main-menu-section {
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(1, 98, 87, 0.22) !important;
  box-shadow: 0 6px 18px rgba(1, 98, 87, 0.04);
}

.hm-main-menu-section .et_pb_row {
  width: 100% !important;
  max-width: none !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.hm-main-menu-section .et-menu {
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 3px;
}

.hm-main-menu-section .et-menu > li {
  margin: 0 !important;
  padding: 0 !important;
}

.hm-main-menu-section .et-menu > li > a,
.hm-main-menu-section .et_pb_menu .et-menu > li > a {
  color: var(--hm-green) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  letter-spacing: 0.015em;
  line-height: 1.2 !important;
  min-height: 46px;
  padding: 0 13px !important;
  border-top: 3px solid transparent;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  text-decoration: none !important;
}

.hm-main-menu-section .et-menu > li > a:hover,
.hm-main-menu-section .et-menu > li.current-menu-item > a,
.hm-main-menu-section .et-menu > li.current-menu-ancestor > a {
  background: var(--hm-mint-soft) !important;
  border-top-color: var(--hm-green) !important;
  color: var(--hm-green-dark) !important;
  opacity: 1 !important;
}

.hm-main-menu-section .et_pb_menu,
.hm-main-menu-section .et_pb_menu_inner_container,
.hm-main-menu-section .et_pb_menu__wrap,
.hm-main-menu-section .et_pb_menu__menu,
.hm-main-menu-section .et-menu-nav,
.hm-main-menu-section .et-menu,
.hm-main-menu-section .et-menu > li,
.hm-main-menu-section .et-menu > li > a {
  border-left: 0 !important;
  border-right: 0 !important;
}

.hm-main-menu-section .et_mobile_menu,
.et_mobile_menu,
.nav li ul {
  border-color: var(--hm-green) !important;
}

.mobile_menu_bar:before,
.mobile_menu_bar:after,
.et_pb_menu__icon:after,
.et_pb_menu__search-button:after {
  color: var(--hm-green) !important;
}

@media (min-width: 981px) and (max-width: 1180px) {
  .hm-main-menu-section .et-menu > li > a,
  .hm-main-menu-section .et_pb_menu .et-menu > li > a {
    font-size: 13px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

/* ---------------------------------------------------------
   Page titles: consistent, minimal, no gray divider boxes
   --------------------------------------------------------- */

.hm-post-content .et-l--post .et_pb_divider,
.et_pb_post_content .et-l--post .et_pb_divider,
.hm-post-content .et-l--post .et_pb_divider:before,
.et_pb_post_content .et-l--post .et_pb_divider:before {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hm-post-content .et_pb_text_inner > h1,
.hm-post-content .et_pb_text_inner > h2,
.et_pb_post_content .et_pb_text_inner > h1,
.et_pb_post_content .et_pb_text_inner > h2,
.tribe-events-before-html h1 {
  max-width: 860px;
  margin: 0 auto 16px !important;
  padding: 0 0 13px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--hm-heading) !important;
  font-size: 31px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1.18 !important;
  text-align: center !important;
}

.hm-post-content .et_pb_text_inner > h1:after,
.hm-post-content .et_pb_text_inner > h2:after,
.et_pb_post_content .et_pb_text_inner > h1:after,
.et_pb_post_content .et_pb_text_inner > h2:after,
.tribe-events-before-html h1:after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  background: var(--hm-green-light);
  border-radius: 999px;
  margin: 13px auto 0;
}

.hm-post-content .et_builder_inner_content > .et_pb_section:first-child,
.et_pb_post_content .et_builder_inner_content > .et_pb_section:first-child {
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.hm-post-content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_row,
.et_pb_post_content
  .et_builder_inner_content
  > .et_pb_section:first-child
  .et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Confidential notices: consistent alert style */
.hm-post-content h1 span[style*="color: #ff0000"],
.hm-post-content h2 span[style*="color: #ff0000"],
.et_pb_post_content h1 span[style*="color: #ff0000"],
.et_pb_post_content h2 span[style*="color: #ff0000"],
.et_pb_text_inner h4 span[style*="color: #ff0000"],
.et_pb_text_inner h4 span[style*="color:#ff0000"] {
  color: var(--hm-danger) !important;
}

.hm-post-content .et_pb_text_inner > h1 + h4 span[style*="color: #ff0000"],
.hm-post-content .et_pb_text_inner > h2 + h4 span[style*="color: #ff0000"],
.et_pb_post_content .et_pb_text_inner > h1 + h4 span[style*="color: #ff0000"],
.et_pb_post_content .et_pb_text_inner > h2 + h4 span[style*="color: #ff0000"] {
  display: block;
  max-width: 760px !important;
  margin: 0 auto 18px !important;
  background: #fff6f5;
  border: 1px solid #f0c9c5;
  border-left: 5px solid var(--hm-danger);
  border-radius: var(--hm-radius-md);
  color: var(--hm-danger) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.45;
  padding: 13px 16px;
}

/* ---------------------------------------------------------
   Content cards, tables, forms, sidebars: same visual language
   --------------------------------------------------------- */

.hm-sidebar-search,
.hm-sidebar-map,
.hm-sidebar-map + .et_pb_image,
.frm_forms.with_frm_style form,
#wpmem_login,
.hm-post-content .dt-container,
.et_pb_post_content .dt-container,
.frm_collapse,
.hm-post-content .et_pb_toggle {
  border-color: var(--hm-border) !important;
  border-radius: var(--hm-radius-lg) !important;
  box-shadow: var(--hm-shadow-md) !important;
}

.hm-sidebar-search,
.frm_forms.with_frm_style form,
#wpmem_login {
  border-top: 5px solid var(--hm-green) !important;
}

.hm-sidebar-search:before,
.hm-sidebar-map h4,
#wpmem_login legend,
.frm_forms.with_frm_style .frm_primary_label,
.et_pb_widget h4,
.widgettitle,
.widget-title {
  color: var(--hm-green) !important;
  font-weight: 800 !important;
}

.hm-post-content .dt-container,
.et_pb_post_content .dt-container {
  margin-top: 8px !important;
}

.hm-post-content .dt-layout-row:first-child,
.et_pb_post_content .dt-layout-row:first-child {
  background: linear-gradient(90deg, var(--hm-soft-green), #ffffff) !important;
  border-bottom-color: var(--hm-border) !important;
  padding: 12px 18px !important;
}

.hm-post-content table.tablepress thead th,
.et_pb_post_content table.tablepress thead th,
.tablepress thead th {
  background: linear-gradient(
    90deg,
    var(--hm-green),
    var(--hm-green-dark)
  ) !important;
}

.et_pb_button,
.frm_forms.with_frm_style .frm_final_submit,
.frm_forms.with_frm_style input[type="submit"],
#wpmem_login input[type="submit"],
#wpmem_login .buttons {
  border-radius: 999px !important;
  font-weight: 850 !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Events: maintain the same title/card family
   --------------------------------------------------------- */

body.post-type-archive-tribe_events #left-area,
body.single-tribe_events #left-area {
  border-color: var(--hm-border) !important;
  border-top-color: var(--hm-green) !important;
  border-radius: var(--hm-radius-lg) !important;
  box-shadow: var(--hm-shadow-md) !important;
}

body.single-tribe_events .tribe-events-schedule:before {
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
}

/* ---------------------------------------------------------
   Footer v1.6: upscale, editable menu-module ready
   --------------------------------------------------------- */

.hm-site-footer.hm-site-footer-enhanced,
.hm-site-footer-enhanced {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 98, 87, 0.34),
      transparent 430px
    ),
    linear-gradient(145deg, #24302f 0%, #1d2424 58%, #181d1d 100%) !important;
  border-top: 4px solid var(--hm-green) !important;
  color: #d9dfdd !important;
  padding: 0 !important;
}

.hm-site-footer-enhanced .hm-footer-main {
  border-bottom: 1px solid rgba(220, 239, 235, 0.12) !important;
}

.hm-site-footer-enhanced .et_pb_row {
  width: 94% !important;
  max-width: 1120px !important;
}

.hm-site-footer-enhanced,
.hm-site-footer-enhanced p,
.hm-site-footer-enhanced li,
.hm-site-footer-enhanced .et_pb_text,
.hm-site-footer-enhanced .et_pb_text_inner {
  color: rgba(230, 238, 236, 0.86) !important;
  font-size: 13px !important;
  line-height: 1.65;
}

.hm-site-footer-enhanced h4,
.hm-footer-menu-title h4,
.hm-footer-help h4 {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0 0 16px !important;
  padding: 0 0 11px !important;
  position: relative;
  text-transform: uppercase;
}

.hm-site-footer-enhanced h4:after,
.hm-footer-menu-title h4:after,
.hm-footer-help h4:after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--hm-green-light);
  border-radius: 999px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.hm-footer-brandmark {
  background: rgba(1, 98, 87, 0.32) !important;
  border: 1px solid rgba(220, 239, 235, 0.2) !important;
  color: #ffffff !important;
}

.hm-footer-brand strong {
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Footer Divi Menu modules as vertical WordPress-managed menus */
.hm-site-footer-enhanced .hm-footer-menu,
.hm-site-footer-enhanced .hm-footer-menu .et_pb_menu_inner_container,
.hm-site-footer-enhanced .hm-footer-menu .et_pb_menu__wrap,
.hm-site-footer-enhanced .hm-footer-menu .et_pb_menu__menu,
.hm-site-footer-enhanced .hm-footer-menu nav,
.hm-site-footer-enhanced .hm-footer-menu .et-menu {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hm-site-footer-enhanced .hm-footer-menu .et_mobile_nav_menu {
  display: none !important;
}

.hm-site-footer-enhanced .hm-footer-menu .et-menu {
  list-style: none !important;
}

.hm-site-footer-enhanced .hm-footer-menu .et-menu > li,
.hm-site-footer-enhanced .hm-footer-menu .menu-item {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

.hm-site-footer-enhanced .hm-footer-menu .et-menu > li > a,
.hm-site-footer-enhanced .hm-footer-menu .menu-item > a,
.hm-site-footer-enhanced .hm-footer-links li a {
  display: inline-flex !important;
  align-items: center;
  color: rgba(230, 238, 236, 0.86) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.hm-site-footer-enhanced .hm-footer-menu .et-menu > li > a:before,
.hm-site-footer-enhanced .hm-footer-menu .menu-item > a:before,
.hm-site-footer-enhanced .hm-footer-links li a:before {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(1, 98, 87, 0.34);
  color: #dcefeb;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.hm-site-footer-enhanced .hm-footer-menu .et-menu > li > a:hover,
.hm-site-footer-enhanced .hm-footer-menu .menu-item > a:hover,
.hm-site-footer-enhanced .hm-footer-links li a:hover {
  color: #ffffff !important;
}

.hm-site-footer-enhanced .hm-footer-menu .et-menu > li > a:hover:before,
.hm-site-footer-enhanced .hm-footer-menu .menu-item > a:hover:before,
.hm-site-footer-enhanced .hm-footer-links li a:hover:before {
  background: var(--hm-green) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

/* Remove dropdown arrows in footer menus */
.hm-site-footer-enhanced
  .hm-footer-menu
  .menu-item-has-children
  > a:first-child:after {
  display: none !important;
}

/* Footer search */
.hm-footer-search-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.hm-footer-search-form input[type="search"] {
  height: 42px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(220, 239, 235, 0.24) !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
  color: #ffffff !important;
}

.hm-footer-search-form button {
  height: 42px !important;
  background: var(--hm-green) !important;
  border-color: var(--hm-green) !important;
  border-radius: 0 10px 10px 0 !important;
  color: #ffffff !important;
}

/* Footer Help CTA: fixes white/blank-looking button by outscoping footer link rules */
.hm-site-footer-enhanced .hm-footer-help a.hm-footer-button,
.hm-site-footer-enhanced a.hm-footer-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  background: var(--hm-green) !important;
  border: 1px solid rgba(220, 239, 235, 0.3) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.1 !important;
  margin-top: 6px;
  padding: 11px 16px !important;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(1, 98, 87, 0.22);
}

.hm-site-footer-enhanced .hm-footer-help a.hm-footer-button:after,
.hm-site-footer-enhanced a.hm-footer-button:after {
  content: "↗";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 12px;
  line-height: 1;
}

.hm-site-footer-enhanced .hm-footer-help a.hm-footer-button:hover,
.hm-site-footer-enhanced a.hm-footer-button:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--hm-green) !important;
  transform: translateY(-1px);
}

.hm-site-footer-enhanced .hm-footer-help a.hm-footer-button:hover:after,
.hm-site-footer-enhanced a.hm-footer-button:hover:after {
  background: var(--hm-mint-soft);
  color: var(--hm-green) !important;
}

.hm-footer-bottom-row {
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(220, 239, 235, 0.08) !important;
}

.hm-footer-copyright,
.hm-footer-copyright .et_pb_text_inner,
.hm-footer-copyright p {
  color: rgba(230, 238, 236, 0.72) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

@media (max-width: 980px) {
  .hm-site-footer-enhanced .hm-footer-main {
    padding-top: 32px !important;
    padding-bottom: 12px !important;
  }

  .hm-site-footer-enhanced .et_pb_column {
    margin-bottom: 26px !important;
  }

  .hm-post-content .et_pb_text_inner > h1,
  .hm-post-content .et_pb_text_inner > h2,
  .et_pb_post_content .et_pb_text_inner > h1,
  .et_pb_post_content .et_pb_text_inner > h2,
  .tribe-events-before-html h1 {
    font-size: 26px !important;
  }
}

@media (max-width: 640px) {
  .hm-footer-search-inner {
    display: block;
    box-shadow: none;
  }

  .hm-footer-search-form input[type="search"] {
    border-right: 1px solid rgba(220, 239, 235, 0.24) !important;
    border-radius: 10px !important;
    margin-bottom: 8px;
  }

  .hm-footer-search-form button,
  .hm-site-footer-enhanced .hm-footer-help a.hm-footer-button,
  .hm-site-footer-enhanced a.hm-footer-button {
    width: 100% !important;
    border-radius: 10px !important;
  }
}

/* =========================================================
   Hacienda v1.7: Search / Archive / 404 Results Layouts
   ========================================================= */

.hm-template-title-block {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}

.hm-template-title-block h1 {
  margin: 0 !important;
  padding: 0 0 13px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--hm-green) !important;
  font-size: 31px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em;
  text-align: center !important;
}

.hm-template-title-block h1:after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  background: var(--hm-green-light, #4a968b);
  border-radius: 999px;
  margin: 13px auto 0;
}

.hm-template-title-block .hm-template-subtitle {
  max-width: 650px;
  margin: 14px auto 0 !important;
  color: #5d6a66;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.hm-template-title-block .hm-template-subtitle span {
  color: var(--hm-green-dark);
  font-weight: 900;
}

.hm-search-results-shell .hm-results-title,
.hm-archive-results-shell .hm-results-title,
.hm-404-shell .hm-results-title {
  margin-bottom: 12px !important;
}

/* Results list cards */
.hm-results-blog {
  margin-top: 8px;
}

.hm-results-blog .et_pb_ajax_pagination_container {
  display: block;
}

.hm-results-blog article.et_pb_post,
.search .hm-results-blog article.et_pb_post,
.archive .hm-results-blog article.et_pb_post {
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-left: 5px solid var(--hm-green);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(1, 98, 87, 0.07);
  margin-bottom: 18px !important;
  padding: 22px 24px !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.hm-results-blog article.et_pb_post:hover,
.search .hm-results-blog article.et_pb_post:hover,
.archive .hm-results-blog article.et_pb_post:hover {
  border-color: rgba(1, 98, 87, 0.28);
  box-shadow: 0 16px 34px rgba(1, 98, 87, 0.11);
  transform: translateY(-1px);
}

.hm-results-blog article.et_pb_post .entry-title,
.hm-results-blog article.et_pb_post h2.entry-title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--hm-green) !important;
  font-size: 21px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

.hm-results-blog article.et_pb_post .entry-title:after,
.hm-results-blog article.et_pb_post h2.entry-title:after {
  display: none !important;
}

.hm-results-blog article.et_pb_post .entry-title a {
  color: var(--hm-green) !important;
  text-decoration: none !important;
}

.hm-results-blog article.et_pb_post .entry-title a:hover {
  color: var(--hm-green-dark) !important;
  text-decoration: underline !important;
}

.hm-results-blog .post-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px !important;
  color: #6f7b77 !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.4;
}

.hm-results-blog .post-meta a {
  color: var(--hm-green) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.hm-results-blog .post-meta a:hover {
  color: var(--hm-green-dark) !important;
  text-decoration: underline !important;
}

.hm-results-blog .post-content,
.hm-results-blog .post-content p {
  color: #4f5a57;
  font-size: 14px;
  line-height: 1.65;
}

.hm-results-blog a.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-green);
  border: 1px solid var(--hm-green);
  border-radius: 999px;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 12px;
  padding: 10px 15px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.hm-results-blog a.more-link:after {
  content: "→";
  margin-left: 7px;
}

.hm-results-blog a.more-link:hover {
  background: var(--hm-green-dark);
  border-color: var(--hm-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.18);
}

/* Divi no-results output inside Blog module */
.hm-results-blog .entry,
.hm-results-blog .not-found-title,
.hm-results-blog .no-results,
.hm-results-blog .et_pb_post.not-found {
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-left: 5px solid var(--hm-green-light, #4a968b);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(1, 98, 87, 0.07);
  padding: 24px !important;
}

.hm-results-blog .not-found-title,
.hm-results-blog h2.not-found-title {
  color: var(--hm-green) !important;
  font-size: 22px !important;
  font-weight: 850 !important;
  margin: 0 0 10px !important;
}

/* Pagination */
.hm-results-blog .pagination,
.hm-results-blog .wp-pagenavi {
  margin-top: 24px;
  text-align: center;
}

.hm-results-blog .pagination a,
.hm-results-blog .wp-pagenavi a,
.hm-results-blog .wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  margin: 3px;
  border: 1px solid #dcefeb !important;
  border-radius: 999px;
  background: #ffffff;
  color: var(--hm-green) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.hm-results-blog .pagination a:hover,
.hm-results-blog .wp-pagenavi a:hover,
.hm-results-blog .wp-pagenavi .current {
  background: var(--hm-green) !important;
  border-color: var(--hm-green) !important;
  color: #ffffff !important;
}

/* 404 page */
.hm-404-shell {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 98, 87, 0.08),
      transparent 380px
    ),
    linear-gradient(180deg, #f3f8f7 0%, #ffffff 420px) !important;
}

.hm-404-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dcefeb;
  border-top: 5px solid var(--hm-green);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(1, 98, 87, 0.1);
  padding: 36px !important;
  text-align: center;
}

.hm-404-card .et_pb_search {
  max-width: 520px;
  margin: 22px auto 0 !important;
}

.hm-404-card .hm-template-title-block {
  margin-bottom: 10px;
}

.hm-404-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hm-404-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  text-decoration: none !important;
  text-transform: uppercase;
}

.hm-404-actions .hm-404-primary {
  background: var(--hm-green);
  border: 1px solid var(--hm-green);
  color: #ffffff !important;
}

.hm-404-actions .hm-404-secondary {
  background: #ffffff;
  border: 1px solid #dcefeb;
  color: var(--hm-green) !important;
}

.hm-404-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.14);
}

@media (max-width: 980px) {
  .hm-search-results-shell .et_pb_row,
  .hm-archive-results-shell .et_pb_row {
    width: 92% !important;
  }

  .hm-results-blog article.et_pb_post,
  .search .hm-results-blog article.et_pb_post,
  .archive .hm-results-blog article.et_pb_post {
    padding: 20px !important;
  }

  .hm-template-title-block h1 {
    font-size: 26px !important;
  }
}

@media (max-width: 640px) {
  .hm-template-title-block h1 {
    font-size: 23px !important;
  }

  .hm-results-blog article.et_pb_post .entry-title,
  .hm-results-blog article.et_pb_post h2.entry-title {
    font-size: 19px !important;
  }

  .hm-404-card {
    padding: 26px 18px !important;
  }
}

/* =========================================================
   Hacienda v1.8: Resident / Space Record Page Polish
   Styles pages like "Space 163" with Resident Journal,
   Resident Information, Lot/Home, Utilities, Pets, Vehicles.
   This layer is appended last and scoped to hm-post-content.
   ========================================================= */

/* ---------------------------------------------------------
   Resident record title: match global page-title system
   Example: Space 163 / Palmer, Sandra
   --------------------------------------------------------- */

.hm-post-content .et-l--post .et_builder_inner_content > h1 {
  max-width: 860px;
  margin: 0 auto 18px !important;
  padding: 0 0 13px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--hm-green) !important;
  font-size: 31px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em;
  line-height: 1.18 !important;
  text-align: center !important;
  position: relative;
}

.hm-post-content .et-l--post .et_builder_inner_content > h1:after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  background: var(--hm-green-light, #4a968b);
  border-radius: 999px;
  margin: 13px auto 0;
}

/* Resident name/subtitle inside title */
.hm-post-content
  .et-l--post
  .et_builder_inner_content
  > h1
  span[style*="color: #888888"],
.hm-post-content
  .et-l--post
  .et_builder_inner_content
  > h1
  span[style*="color:#888888"],
.hm-post-content
  .et-l--post
  .et_builder_inner_content
  > h1
  span[style*="#888888"],
.hm-post-content
  .et-l--post
  .et_builder_inner_content
  > h1
  span[style*="color: rgb(136, 136, 136)"] {
  display: block;
  color: var(--hm-muted) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  line-height: 1.35 !important;
  margin-top: 8px;
}

/* Remove empty paragraph gap immediately under the title */
.hm-post-content .et-l--post .et_builder_inner_content > h1 + p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------
   Resident page spacing cleanup
   --------------------------------------------------------- */

.hm-post-content .et-l--post .et_pb_section {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.hm-post-content .et-l--post .et_pb_row {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.hm-post-content .et-l--post .et_pb_text {
  margin-bottom: 14px !important;
}

.hm-post-content .et-l--post .et_pb_divider,
.hm-post-content .et-l--post .et_pb_divider:before,
.hm-post-content .et-l--post .et_pb_divider_internal {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------
   Resident section headings
   Example: Resident's Journal, Resident/s Information,
   Historical Issues, Utilities Information, Vehicles, etc.
   --------------------------------------------------------- */

.hm-post-content .et-l--post .et_pb_text_inner > h3,
.hm-post-content .et-l--post .table-1 > h3,
.hm-post-content .et-l--post .table-1 h3 {
  color: var(--hm-green) !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em;
  margin: 8px 0 14px !important;
  padding: 0 0 11px !important;
  text-align: center !important;
  position: relative;
}

.hm-post-content .et-l--post .et_pb_text_inner > h3:after,
.hm-post-content .et-l--post .table-1 > h3:after,
.hm-post-content .et-l--post .table-1 h3:after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  background: var(--hm-green-light, #4a968b);
  border-radius: 999px;
  margin: 11px auto 0;
}

/* Left-aligned "Resident's Journal" still gets the same treatment */
.hm-post-content .et-l--post .et_pb_text_inner > h3[style*="text-align: left"] {
  text-align: left !important;
}

.hm-post-content
  .et-l--post
  .et_pb_text_inner
  > h3[style*="text-align: left"]:after {
  margin-left: 0;
  margin-right: 0;
}

/* ---------------------------------------------------------
   Card shell around resident information/table modules
   Uses :has for modern browsers; table styling below still works
   even if :has is unsupported.
   --------------------------------------------------------- */

.hm-post-content .et-l--post .et_pb_text:has(.table-1),
.hm-post-content .et-l--post .et_pb_text:has(.et_pb_text_inner > table),
.hm-post-content
  .et-l--post
  .et_pb_text:has(.et_pb_text_inner > h3[style*="text-align: center"]) {
  background: #ffffff !important;
  border: 1px solid var(--hm-border, #dcefeb) !important;
  border-radius: var(--hm-radius-lg, 14px) !important;
  box-shadow: var(--hm-shadow-sm, 0 8px 20px rgba(1, 98, 87, 0.06)) !important;
  padding: 18px !important;
  margin: 0 0 16px !important;
  overflow: hidden;
}

/* Do not card completely empty text modules */
.hm-post-content .et-l--post .et_pb_text:has(.et_pb_text_inner:empty) {
  display: none !important;
}

/* ---------------------------------------------------------
   Resident information tables
   Old Avada class: .table-1
   --------------------------------------------------------- */

.hm-post-content .et-l--post .table-1 {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hm-post-content .et-l--post .table-1 + .table-1 {
  margin-top: 14px !important;
}

.hm-post-content .et-l--post .table-1 table,
.hm-post-content .et-l--post .et_pb_text_inner > table {
  width: 100% !important;
  min-width: 620px;
  margin: 0 !important;
  border: 1px solid var(--hm-border, #dcefeb) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.45;
}

/* Header rows are plain first rows in these migrated tables */
.hm-post-content .et-l--post .table-1 table tr:first-child td,
.hm-post-content .et-l--post .table-1 table tr:first-child th,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:first-child td,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:first-child th {
  background: linear-gradient(
    90deg,
    var(--hm-green),
    var(--hm-green-dark)
  ) !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em;
  line-height: 1.25;
  padding: 12px 11px !important;
  text-transform: uppercase;
  vertical-align: middle;
}

.hm-post-content .et-l--post .table-1 table tr:first-child td *,
.hm-post-content .et-l--post .table-1 table tr:first-child th *,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:first-child td *,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:first-child th * {
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Body cells */
.hm-post-content .et-l--post .table-1 table td,
.hm-post-content .et-l--post .table-1 table th,
.hm-post-content .et-l--post .et_pb_text_inner > table td,
.hm-post-content .et-l--post .et_pb_text_inner > table th {
  border: 0 !important;
  border-right: 1px solid var(--hm-border-soft, #edf4f2) !important;
  border-bottom: 1px solid var(--hm-border-soft, #edf4f2) !important;
  color: #34413e;
  padding: 12px 11px !important;
  vertical-align: top;
  word-break: normal;
}

.hm-post-content .et-l--post .table-1 table td:last-child,
.hm-post-content .et-l--post .table-1 table th:last-child,
.hm-post-content .et-l--post .et_pb_text_inner > table td:last-child,
.hm-post-content .et-l--post .et_pb_text_inner > table th:last-child {
  border-right: 0 !important;
}

.hm-post-content .et-l--post .table-1 table tr:last-child td,
.hm-post-content .et-l--post .table-1 table tr:last-child th,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:last-child td,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:last-child th {
  border-bottom: 0 !important;
}

.hm-post-content .et-l--post .table-1 table tr:nth-child(even) td,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:nth-child(even) td {
  background: var(--hm-soft-green, #f7fbfa);
}

.hm-post-content .et-l--post .table-1 table tr:hover td,
.hm-post-content .et-l--post .et_pb_text_inner > table tr:hover td {
  background: #eef7f5;
}

/* Preserve label emphasis in body rows, but align it with the design system */
.hm-post-content .et-l--post .table-1 table tr:not(:first-child) strong,
.hm-post-content
  .et-l--post
  .et_pb_text_inner
  > table
  tr:not(:first-child)
  strong {
  color: var(--hm-green) !important;
  font-weight: 850 !important;
}

/* Empty cells should feel intentional, not broken */
.hm-post-content .et-l--post .table-1 table td:empty,
.hm-post-content .et-l--post .et_pb_text_inner > table td:empty {
  background-image: linear-gradient(
    135deg,
    rgba(1, 98, 87, 0.025),
    rgba(1, 98, 87, 0)
  );
}

/* Links inside resident tables */
.hm-post-content .et-l--post .table-1 table a,
.hm-post-content .et-l--post .et_pb_text_inner > table a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hm-mint-soft, #f3f8f7);
  border: 1px solid var(--hm-border, #dcefeb);
  border-radius: 999px;
  color: var(--hm-green) !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  min-height: 28px;
  padding: 7px 11px;
  text-decoration: none !important;
}

.hm-post-content .et-l--post .table-1 table a:hover,
.hm-post-content .et-l--post .et_pb_text_inner > table a:hover {
  background: var(--hm-green);
  border-color: var(--hm-green);
  color: #ffffff !important;
}

/* ---------------------------------------------------------
   Subsection headings inside resident cards
   Example: Lot Measurements, Home Information, Utilities - Electric
   --------------------------------------------------------- */

.hm-post-content .et-l--post .table-1 h4,
.hm-post-content .et-l--post .et_pb_text_inner > h4 {
  color: var(--hm-green) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.25 !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  text-align: center !important;
  text-transform: uppercase;
  position: relative;
}

.hm-post-content .et-l--post .table-1 h4:after,
.hm-post-content .et-l--post .et_pb_text_inner > h4:after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: var(--hm-green-light, #4a968b);
  border-radius: 999px;
  margin: 9px auto 0;
}

.hm-post-content .et-l--post .table-1 h4 span,
.hm-post-content .et-l--post .et_pb_text_inner > h4 span {
  color: var(--hm-green) !important;
}

/* ---------------------------------------------------------
   Resident Journal form area refinement
   --------------------------------------------------------- */

.hm-post-content .et-l--post .frm_forms.with_frm_style {
  margin-top: 8px !important;
  margin-bottom: 18px !important;
}

.hm-post-content .et-l--post .frm_forms.with_frm_style form {
  border-radius: var(--hm-radius-lg, 14px) !important;
  box-shadow: var(--hm-shadow-md, 0 14px 34px rgba(1, 98, 87, 0.09)) !important;
}

.hm-post-content .et-l--post .frm_forms.with_frm_style textarea {
  min-height: 220px !important;
}

.hm-post-content .et-l--post .frm_forms.with_frm_style .frm_submit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Hide Formidable honeypot field visually if it leaks in admin-view markup */
.hm-post-content .et-l--post .frm_verify,
.hm-post-content .et-l--post [id*="frm_field_1797_container"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------------------------------------------------------
   Resident History button
   --------------------------------------------------------- */

.hm-post-content
  .et-l--post
  .et_pb_button_module_wrapper:has(a[href*="formidable-entries"]) {
  text-align: center;
  margin: 2px 0 18px !important;
}

.hm-post-content .et-l--post a.et_pb_button[href*="formidable-entries"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  background: #ffffff !important;
  border: 1px solid var(--hm-green) !important;
  border-radius: 999px !important;
  color: var(--hm-green) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.045em;
  line-height: 1.1 !important;
  padding: 12px 18px !important;
  text-transform: uppercase;
  box-shadow: var(--hm-shadow-sm, 0 8px 20px rgba(1, 98, 87, 0.06));
}

.hm-post-content .et-l--post a.et_pb_button[href*="formidable-entries"]:after {
  content: "↗" !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  width: 19px;
  height: 19px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--hm-mint-soft, #f3f8f7);
  color: var(--hm-green) !important;
  font-size: 11px;
  line-height: 1;
  opacity: 1 !important;
}

.hm-post-content .et-l--post a.et_pb_button[href*="formidable-entries"]:hover {
  background: var(--hm-green) !important;
  border-color: var(--hm-green) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(1, 98, 87, 0.16);
}

.hm-post-content
  .et-l--post
  a.et_pb_button[href*="formidable-entries"]:hover:after {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

/* ---------------------------------------------------------
   Confidential notice at bottom of resident record
   --------------------------------------------------------- */

.hm-post-content
  .et-l--post
  p[style*="text-align: center"]
  span[style*="color: #ff0000"],
.hm-post-content
  .et-l--post
  p[style*="text-align: center"]
  span[style*="color:#ff0000"],
.hm-post-content
  .et-l--post
  p[style*="text-align:center"]
  span[style*="color: #ff0000"],
.hm-post-content
  .et-l--post
  p[style*="text-align:center"]
  span[style*="color:#ff0000"] {
  display: block;
  max-width: 760px;
  margin: 12px auto 0;
  background: #fff6f5;
  border: 1px solid #f0c9c5;
  border-left: 5px solid var(--hm-danger, #a51f1f);
  border-radius: var(--hm-radius-md, 10px);
  color: var(--hm-danger, #a51f1f) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.45;
  padding: 13px 16px;
  text-align: left;
}

/* ---------------------------------------------------------
   Responsive resident record tables
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .hm-post-content .et-l--post .et_builder_inner_content > h1 {
    font-size: 26px !important;
    margin-bottom: 14px !important;
  }

  .hm-post-content
    .et-l--post
    .et_builder_inner_content
    > h1
    span[style*="color: #888888"],
  .hm-post-content
    .et-l--post
    .et_builder_inner_content
    > h1
    span[style*="color:#888888"],
  .hm-post-content
    .et-l--post
    .et_builder_inner_content
    > h1
    span[style*="#888888"],
  .hm-post-content
    .et-l--post
    .et_builder_inner_content
    > h1
    span[style*="color: rgb(136, 136, 136)"] {
    font-size: 16px !important;
  }

  .hm-post-content .et-l--post .et_pb_text:has(.table-1),
  .hm-post-content .et-l--post .et_pb_text:has(.et_pb_text_inner > table),
  .hm-post-content
    .et-l--post
    .et_pb_text:has(.et_pb_text_inner > h3[style*="text-align: center"]) {
    padding: 15px !important;
  }

  .hm-post-content .et-l--post .table-1 table,
  .hm-post-content .et-l--post .et_pb_text_inner > table {
    min-width: 760px;
  }
}

@media (max-width: 640px) {
  .hm-post-content .et-l--post .et_builder_inner_content > h1 {
    font-size: 23px !important;
  }

  .hm-post-content .et-l--post .et_pb_text_inner > h3,
  .hm-post-content .et-l--post .table-1 > h3,
  .hm-post-content .et-l--post .table-1 h3 {
    font-size: 18px !important;
  }

  .hm-post-content .et-l--post .frm_forms.with_frm_style textarea {
    min-height: 180px !important;
  }

  .hm-post-content .et-l--post .frm_forms.with_frm_style .frm_submit {
    display: block;
  }

  .hm-post-content .et-l--post a.et_pb_button[href*="formidable-entries"] {
    width: 100%;
  }
}

/* =========================================================
   Hacienda v1.8.1: Resident Tables Visibility + Full-Width Fix
   This layer corrects v1.8 table/card overflow for migrated Avada
   resident pages with irregular nested .table-1 markup.
   ========================================================= */

/* Never hide resident text modules just because migrated nested markup
   contains an empty .et_pb_text_inner somewhere deeper in the tree. */
.hm-post-content .et-l--post .et_pb_text:has(.et_pb_text_inner:empty),
.et_pb_post_content .et-l--post .et_pb_text:has(.et_pb_text_inner:empty) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Only hide truly empty modules where the module's own direct text area is empty. */
.hm-post-content .et-l--post .et_pb_text:has(> .et_pb_text_inner:empty),
.et_pb_post_content .et-l--post .et_pb_text:has(> .et_pb_text_inner:empty) {
  display: none !important;
}

/* Card modules that contain resident tables must not clip the table. */
.hm-post-content .et-l--post .et_pb_text:has(.table-1),
.hm-post-content .et-l--post .et_pb_text:has(.et_pb_text_inner > table),
.et_pb_post_content .et-l--post .et_pb_text:has(.table-1),
.et_pb_post_content .et-l--post .et_pb_text:has(.et_pb_text_inner > table) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

/* Make every old Avada table wrapper visible and full column width. */
.hm-post-content .et-l--post .table-1,
.et_pb_post_content .et-l--post .table-1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Full-width resident tables. Keep them visible even if earlier mobile rules
   changed generic .et_pb_text table display behavior. */
.hm-post-content .et-l--post .table-1 table,
.hm-post-content .et-l--post .et_pb_text_inner > table,
.et_pb_post_content .et-l--post .table-1 table,
.et_pb_post_content .et-l--post .et_pb_text_inner > table {
  display: table !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  table-layout: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hm-post-content .et-l--post .table-1 thead,
.hm-post-content .et-l--post .et_pb_text_inner > table thead,
.et_pb_post_content .et-l--post .table-1 thead,
.et_pb_post_content .et-l--post .et_pb_text_inner > table thead {
  display: table-header-group !important;
}

.hm-post-content .et-l--post .table-1 tbody,
.hm-post-content .et-l--post .et_pb_text_inner > table tbody,
.et_pb_post_content .et-l--post .table-1 tbody,
.et_pb_post_content .et-l--post .et_pb_text_inner > table tbody {
  display: table-row-group !important;
}

.hm-post-content .et-l--post .table-1 tr,
.hm-post-content .et-l--post .et_pb_text_inner > table tr,
.et_pb_post_content .et-l--post .table-1 tr,
.et_pb_post_content .et-l--post .et_pb_text_inner > table tr {
  display: table-row !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hm-post-content .et-l--post .table-1 td,
.hm-post-content .et-l--post .table-1 th,
.hm-post-content .et-l--post .et_pb_text_inner > table td,
.hm-post-content .et-l--post .et_pb_text_inner > table th,
.et_pb_post_content .et-l--post .table-1 td,
.et_pb_post_content .et-l--post .table-1 th,
.et_pb_post_content .et-l--post .et_pb_text_inner > table td,
.et_pb_post_content .et-l--post .et_pb_text_inner > table th {
  display: table-cell !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 86px;
  vertical-align: top !important;
}

/* Preserve clean card look while allowing wide information tables to scroll. */
.hm-post-content .et-l--post .et_pb_text:has(.table-1)::-webkit-scrollbar,
.hm-post-content .et-l--post .table-1::-webkit-scrollbar,
.et_pb_post_content .et-l--post .et_pb_text:has(.table-1)::-webkit-scrollbar,
.et_pb_post_content .et-l--post .table-1::-webkit-scrollbar {
  height: 8px;
}

.hm-post-content .et-l--post .et_pb_text:has(.table-1)::-webkit-scrollbar-thumb,
.hm-post-content .et-l--post .table-1::-webkit-scrollbar-thumb,
.et_pb_post_content
  .et-l--post
  .et_pb_text:has(.table-1)::-webkit-scrollbar-thumb,
.et_pb_post_content .et-l--post .table-1::-webkit-scrollbar-thumb {
  background: rgba(1, 98, 87, 0.28);
  border-radius: 999px;
}

/* On smaller screens, allow the table to keep readable column widths and scroll. */
@media (max-width: 980px) {
  .hm-post-content .et-l--post .table-1 table,
  .hm-post-content .et-l--post .et_pb_text_inner > table,
  .et_pb_post_content .et-l--post .table-1 table,
  .et_pb_post_content .et-l--post .et_pb_text_inner > table {
    min-width: max(760px, 100%) !important;
  }
}

/* =========================================================
   Hacienda v1.8.2: Resident Records Full-Width + Table Un-nesting
   Requires body class `hm-resident-record-page` from functions.php.
   Purpose:
   - remove right sidebar on Space/resident record pages
   - let wide management tables use the full page width
   - stop old nested .table-1 wrappers from becoming nested visual cards
   ========================================================= */

/* ---------------------------------------------------------
   Resident/Space records should be full-width, not sidebar pages
   --------------------------------------------------------- */

body.hm-resident-record-page .hm-page-shell.hm-content-with-sidebar {
  background:
    radial-gradient(
      circle at top left,
      rgba(1, 98, 87, 0.07),
      transparent 380px
    ),
    linear-gradient(180deg, #f7fbfa 0%, #ffffff 420px) !important;
}

body.hm-resident-record-page .hm-content-with-sidebar > .et_pb_row,
body.hm-resident-record-page .hm-content-with-sidebar .et_pb_row_0_tb_body {
  display: block !important;
  width: 94% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.hm-resident-record-page .hm-content-with-sidebar .et_pb_column_0_tb_body,
body.hm-resident-record-page
  .hm-content-with-sidebar
  .et_pb_column.et_pb_column_2_3 {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

body.hm-resident-record-page .hm-content-with-sidebar .et_pb_column_1_tb_body,
body.hm-resident-record-page
  .hm-content-with-sidebar
  .et_pb_column.et_pb_column_1_3 {
  display: none !important;
}

body.hm-resident-record-page .hm-post-content {
  width: 100% !important;
  max-width: 100% !important;
}

/* Keep the title refined but give it enough room for records */
body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_builder_inner_content
  > h1 {
  max-width: 980px !important;
  margin-bottom: 20px !important;
}

/* ---------------------------------------------------------
   Undo the v1.8 "card every text module" approach on records.
   The migrated resident pages have irregular/nested .table-1 wrappers;
   visual cards must be applied to tables/headings, not parent text modules.
   --------------------------------------------------------- */

body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text:has(.table-1),
body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text:has(.et_pb_text_inner > table),
body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text:has(.et_pb_text_inner > h3[style*="text-align: center"]) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 14px !important;
  overflow: visible !important;
}

/* Never hide table modules on these pages just because an inner wrapper is empty */
body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text:has(.et_pb_text_inner:empty) {
  display: block !important;
}

/* Empty table wrappers can be hidden, but never wrappers containing tables/headings */
body.hm-resident-record-page .hm-post-content .table-1:empty {
  display: none !important;
}

/* ---------------------------------------------------------
   Table wrappers: no nested visual boxes
   --------------------------------------------------------- */

body.hm-resident-record-page .hm-post-content .table-1,
body.hm-resident-record-page .hm-post-content .table-1 .table-1,
body.hm-resident-record-page .hm-post-content .table-1 .table-1 .table-1 {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Only the direct table scroller gets overflow, not every nested wrapper */
body.hm-resident-record-page .hm-post-content .table-1:has(> table),
body.hm-resident-record-page .hm-post-content .et_pb_text_inner:has(> table) {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--hm-radius-lg, 14px);
}

/* ---------------------------------------------------------
   Resident tables: full-width, clean, and scroll only when wider than page
   --------------------------------------------------------- */

body.hm-resident-record-page .hm-post-content table,
body.hm-resident-record-page .hm-post-content .table-1 table,
body.hm-resident-record-page .hm-post-content .et_pb_text_inner > table {
  display: table !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 760px;
  margin: 0 0 22px !important;
  background: #ffffff !important;
  border: 1px solid var(--hm-border, #dcefeb) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--hm-radius-lg, 14px) !important;
  box-shadow: var(--hm-shadow-sm, 0 8px 20px rgba(1, 98, 87, 0.06)) !important;
  overflow: hidden !important;
  table-layout: auto !important;
}

/* Some smaller utility/maintenance tables can fit without a wide min-width */
body.hm-resident-record-page
  .hm-post-content
  table:has(tr:first-child td:nth-child(1):last-child),
body.hm-resident-record-page
  .hm-post-content
  table:has(tr:first-child td:nth-child(2):last-child),
body.hm-resident-record-page
  .hm-post-content
  table:has(tr:first-child td:nth-child(3):last-child),
body.hm-resident-record-page
  .hm-post-content
  table:has(tr:first-child td:nth-child(4):last-child) {
  min-width: 100% !important;
}

body.hm-resident-record-page .hm-post-content table tbody,
body.hm-resident-record-page .hm-post-content table tr {
  width: 100% !important;
}

body.hm-resident-record-page .hm-post-content table td,
body.hm-resident-record-page .hm-post-content table th {
  display: table-cell !important;
  border: 0 !important;
  border-right: 1px solid var(--hm-border-soft, #edf4f2) !important;
  border-bottom: 1px solid var(--hm-border-soft, #edf4f2) !important;
  color: var(--hm-text, #465350) !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  padding: 12px 13px !important;
  vertical-align: top !important;
  white-space: normal !important;
}

body.hm-resident-record-page .hm-post-content table td:last-child,
body.hm-resident-record-page .hm-post-content table th:last-child {
  border-right: 0 !important;
}

body.hm-resident-record-page .hm-post-content table tr:last-child td {
  border-bottom: 0 !important;
}

/* First row acts as header in these old migrated tables */
body.hm-resident-record-page .hm-post-content table tbody tr:first-child td,
body.hm-resident-record-page .hm-post-content table tbody tr:first-child th {
  background: linear-gradient(
    90deg,
    var(--hm-green, #016257),
    var(--hm-green-dark, #014d44)
  ) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.025em;
  line-height: 1.25 !important;
  text-transform: uppercase;
}

body.hm-resident-record-page .hm-post-content table tbody tr:first-child td *,
body.hm-resident-record-page .hm-post-content table tbody tr:first-child th *,
body.hm-resident-record-page .hm-post-content table tbody tr:first-child span,
body.hm-resident-record-page
  .hm-post-content
  table
  tbody
  tr:first-child
  strong {
  color: #ffffff !important;
}

/* Zebra rows for readability */
body.hm-resident-record-page
  .hm-post-content
  table
  tbody
  tr:nth-child(odd):not(:first-child)
  td {
  background: #ffffff !important;
}

body.hm-resident-record-page
  .hm-post-content
  table
  tbody
  tr:nth-child(even)
  td {
  background: var(--hm-soft-green, #f7fbfa) !important;
}

body.hm-resident-record-page
  .hm-post-content
  table
  tbody
  tr:not(:first-child):hover
  td {
  background: #eef7f5 !important;
}

/* Make placeholder dot rows quiet instead of visually prominent */
body.hm-resident-record-page .hm-post-content table td:only-child,
body.hm-resident-record-page .hm-post-content table td {
  min-height: 38px;
}

/* ---------------------------------------------------------
   Section headings on resident pages
   --------------------------------------------------------- */

body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text_inner
  > h3,
body.hm-resident-record-page .hm-post-content .et-l--post .table-1 > h3,
body.hm-resident-record-page .hm-post-content .et-l--post .table-1 h3 {
  clear: both;
  margin: 26px 0 16px !important;
}

body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text_inner
  > h4,
body.hm-resident-record-page .hm-post-content .et-l--post .table-1 > h4,
body.hm-resident-record-page .hm-post-content .et-l--post .table-1 h4 {
  color: var(--hm-green, #016257) !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  margin: 18px 0 12px !important;
  text-align: center !important;
}

body.hm-resident-record-page
  .hm-post-content
  .et-l--post
  .et_pb_text_inner
  > h4
  span,
body.hm-resident-record-page .hm-post-content .et-l--post .table-1 h4 span {
  color: var(--hm-green, #016257) !important;
}

/* ---------------------------------------------------------
   Resident history button spacing
   --------------------------------------------------------- */

body.hm-resident-record-page .hm-post-content .et_pb_button_module_wrapper {
  margin: 10px 0 26px !important;
  text-align: center;
}

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

@media (max-width: 980px) {
  body.hm-resident-record-page .hm-content-with-sidebar > .et_pb_row,
  body.hm-resident-record-page .hm-content-with-sidebar .et_pb_row_0_tb_body {
    width: 92% !important;
  }

  body.hm-resident-record-page .hm-post-content table,
  body.hm-resident-record-page .hm-post-content .table-1 table,
  body.hm-resident-record-page .hm-post-content .et_pb_text_inner > table {
    min-width: 720px;
  }
}

@media (max-width: 640px) {
  body.hm-resident-record-page
    .hm-post-content
    .et-l--post
    .et_builder_inner_content
    > h1 {
    font-size: 24px !important;
  }

  body.hm-resident-record-page
    .hm-post-content
    .et-l--post
    .et_builder_inner_content
    > h1
    span {
    font-size: 15px !important;
  }
}

/* =========================================================
   Hacienda v1.8.3: Residents Index Full-Width
   Requires body class `hm-resident-index-page` from functions.php.
   This removes the right sidebar only for the resident directory/index page,
   so the TablePress directory can use the full content width.
   ========================================================= */

body.hm-resident-index-page .hm-page-shell.hm-content-with-sidebar {
  background: #ffffff !important;
}

body.hm-resident-index-page .hm-content-with-sidebar > .et_pb_row,
body.hm-resident-index-page .hm-content-with-sidebar .et_pb_row_0_tb_body {
  display: block !important;
  width: 94% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.hm-resident-index-page .hm-content-with-sidebar .et_pb_column_0_tb_body,
body.hm-resident-index-page
  .hm-content-with-sidebar
  .et_pb_column.et_pb_column_2_3 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

body.hm-resident-index-page .hm-content-with-sidebar .et_pb_column_1_tb_body,
body.hm-resident-index-page
  .hm-content-with-sidebar
  .et_pb_column.et_pb_column_1_3 {
  display: none !important;
}

body.hm-resident-index-page .hm-post-content {
  width: 100% !important;
  max-width: 100% !important;
}

body.hm-resident-index-page .hm-post-content .dt-container,
body.hm-resident-index-page .et_pb_post_content .dt-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 8px !important;
}

body.hm-resident-index-page .hm-post-content .dt-layout-table,
body.hm-resident-index-page .et_pb_post_content .dt-layout-table,
body.hm-resident-index-page .hm-post-content .dt-layout-full,
body.hm-resident-index-page .et_pb_post_content .dt-layout-full {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

body.hm-resident-index-page .hm-post-content table.tablepress,
body.hm-resident-index-page .et_pb_post_content table.tablepress,
body.hm-resident-index-page #tablepress-5 {
  width: 100% !important;
  min-width: 900px;
}

body.hm-resident-index-page .hm-post-content .et-l--post .et_pb_section,
body.hm-resident-index-page .et_pb_post_content .et-l--post .et_pb_section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.hm-resident-index-page .hm-post-content .et-l--post .et_pb_row,
body.hm-resident-index-page .et_pb_post_content .et-l--post .et_pb_row {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 980px) {
  body.hm-resident-index-page .hm-content-with-sidebar > .et_pb_row,
  body.hm-resident-index-page .hm-content-with-sidebar .et_pb_row_0_tb_body {
    width: 92% !important;
  }

  body.hm-resident-index-page .hm-post-content table.tablepress,
  body.hm-resident-index-page .et_pb_post_content table.tablepress,
  body.hm-resident-index-page #tablepress-5 {
    min-width: 760px;
  }
}

/* =========================================================
   Hacienda: Previous Entries spacing fix
   Adds breathing room after Resident's History button
   ========================================================= */

.hm-post-content .et_pb_button_module_wrapper + .et_pb_divider + .et_pb_text h4,
.hm-post-content .et_pb_button_module_wrapper + .et_pb_text h4,
.hm-post-content h4 + .frm_collapse,
.hm-post-content .frm_collapse {
  margin-top: 22px !important;
}

/* More specific for the Formidable Previous Entries block */
.hm-post-content .et_pb_text_inner > h4:first-child {
  margin-top: 26px !important;
  margin-bottom: 14px !important;
}

/* If the h4 is directly before the archive accordion */
.hm-post-content .et_pb_text_inner > h4:first-child + p + .frm_collapse,
.hm-post-content .et_pb_text_inner > h4:first-child + .frm_collapse {
  margin-top: 12px !important;
}

/* Hacienda About Page refinements
   Paste into Divi > Theme Options > Custom CSS, or append to the child theme style.css. */

/* One consistent decorative underline color across light and dark sections.
   The soft light green is visible on white while still glowing nicely on Hacienda dark green. */
.hm-page-shell,
.hm-section-heading {
  --hm-line-accent: #b8d77a;
}

.hm-section-heading .et_pb_text_inner > h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  background: var(--hm-line-accent, #b8d77a);
  border-radius: 999px;
  margin-top: 14px;
  box-shadow: 0 1px 0 rgba(1, 98, 87, 0.14), 0 0 16px rgba(184, 215, 122, 0.28);
}

.hm-section-heading.hm-heading-center .et_pb_text_inner > h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* Keep the heading paragraph spacing balanced after the underline. */
.hm-section-heading .et_pb_text_inner > h2 + p {
  margin-top: 16px !important;
}

/* Equal-height card rows on desktop/tablet landscape. */
@media (min-width: 981px) {
  .hm-equal-card-row {
    display: flex;
    align-items: stretch;
  }

  .hm-equal-card-row::after {
    display: none;
  }

  .hm-equal-card-row .et_pb_column {
    display: flex;
    flex-direction: column;
  }

  .hm-equal-card-row .hm-equal-card {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
  }

  .hm-equal-card-row .hm-equal-card .et_pb_text_inner {
    height: 100%;
  }
}

/* Slightly more polished cards, without making them hard for clients to edit. */
.hm-polished-card {
  border: 1px solid rgba(1, 98, 87, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hm-polished-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 215, 122, 0.55);
  box-shadow: 0 14px 32px rgba(1, 98, 87, 0.12) !important;
}

/* Mobile: let cards stack naturally and keep spacing comfortable. */
@media (max-width: 980px) {
  .hm-equal-card-row .et_pb_column {
    margin-bottom: 22px !important;
  }

  .hm-section-heading .et_pb_text_inner > h2::after {
    margin-top: 12px;
  }
}

/* ---------------------------------------------------------
   Gallery page cleanup v3
   --------------------------------------------------------- */
/* Hacienda Gallery page cleanup v3
   Use with the Gallery v3 JSON, or append to the child theme style.css. */

/* Gallery page: remove the previous light-green (#b8d77a / rgb(184,215,122)) accent
   and use the existing site underline style, closer to the heading text. */
.hm-gallery-page .et_pb_text_align_center .et_pb_text_inner h1::after,
.hm-gallery-page .et_pb_text_align_center .et_pb_text_inner h2::after,
.hm-gallery-page .et_pb_text_align_center .et_pb_text_inner h3::after,
.hm-gallery-page .et_pb_text_inner h1::after,
.hm-gallery-page .et_pb_text_inner h2::after,
.hm-gallery-page .et_pb_text_inner h3::after {
  margin: 7px auto 0 !important;
  background: var(--hm-green-light, #4a968b) !important;
  box-shadow: none !important;
}

/* If an older imported version still has Divi Divider modules, hide them so there is only one underline. */
.hm-gallery-page .et_pb_divider,
.hm-gallery-page .et_pb_divider::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Force this Divi Gallery module to a clean 3-column grid on desktop. */
.hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_items {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 28px !important;
}

.hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item,
.hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.first_in_row,
.hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.last_in_row,
.hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.on_last_row {
  float: none !important;
  clear: none !important;
  width: calc((100% - 56px) / 3) !important;
  margin: 0 !important;
}

.hm-gallery-grid .et_pb_gallery_image,
.hm-gallery-grid .et_pb_gallery_image a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.hm-gallery-grid .et_pb_gallery_image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 980px) {
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item,
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.first_in_row,
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.last_in_row,
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.on_last_row {
    width: calc((100% - 22px) / 2) !important;
  }

  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_items {
    gap: 22px !important;
  }
}

@media (max-width: 600px) {
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item,
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.first_in_row,
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.last_in_row,
  .hm-gallery-three-columns.et_pb_gallery_grid .et_pb_gallery_item.on_last_row {
    width: 100% !important;
  }
}

/* ---------------------------------------------------------
   Hacienda Rules & Regulations page styling v1
   Use with the Rules Regulations 2020 Divi Redesigned JSON.
   --------------------------------------------------------- */

.hm-rules-page .hm-kicker {
  margin: 0 0 10px !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

/* Keep only the existing site underline style; no extra Divi divider modules. */
.hm-rules-page .et_pb_divider,
.hm-rules-page .et_pb_divider::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.hm-rules-page .et_pb_text_align_center .et_pb_text_inner h2::after,
.hm-rules-page .et_pb_text_inner h2::after {
  margin-top: 7px !important;
  background: var(--hm-green-light, #4a968b) !important;
  box-shadow: none !important;
}

.hm-rules-page .et_pb_text_align_center .et_pb_text_inner h2::after {
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-rules-intro-card {
  border: 1px solid rgba(1,98,87,0.10) !important;
}

.hm-rules-intro-card h2 {
  margin-bottom: 16px !important;
}

.hm-rules-card {
  border: 1px solid rgba(1,98,87,0.10) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hm-rules-card:hover {
  transform: translateY(-3px);
  border-color: rgba(1,98,87,0.22) !important;
  box-shadow: 0 14px 32px rgba(1,98,87,0.12) !important;
}

.hm-rules-card h3 {
  color: var(--hm-green, #016257) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
}

.hm-rules-accordion .et_pb_toggle {
  border: 1px solid rgba(1,98,87,0.13) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(1,98,87,0.07) !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.hm-rules-accordion .et_pb_toggle_open {
  border-color: rgba(1,98,87,0.26) !important;
  box-shadow: 0 12px 30px rgba(1,98,87,0.11) !important;
}

.hm-rules-accordion .et_pb_toggle_title {
  color: var(--hm-green, #016257) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  line-height: 1.35 !important;
  padding: 19px 58px 18px 22px !important;
}

.hm-rules-accordion .et_pb_toggle_title::before {
  right: 22px !important;
  color: var(--hm-green, #016257) !important;
  font-size: 22px !important;
}

.hm-rules-accordion .et_pb_toggle_content {
  color: #5f6f68 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  padding: 0 22px 24px 22px !important;
}

.hm-rules-accordion .et_pb_toggle_content p,
.hm-rules-accordion .et_pb_toggle_content ol,
.hm-rules-accordion .et_pb_toggle_content ul {
  margin-bottom: 13px !important;
}

.hm-rules-accordion .et_pb_toggle_content strong {
  color: #364641 !important;
}

.hm-rules-closing-note {
  background: #f8fbf7 !important;
  border: 1px solid rgba(1,98,87,0.10) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
}

@media (max-width: 980px) {
  .hm-rules-hero h1 {
    font-size: 38px !important;
  }

  .hm-rules-intro-card {
    padding: 28px 24px !important;
  }
}

@media (max-width: 600px) {
  .hm-rules-hero h1 {
    font-size: 32px !important;
  }

  .hm-rules-accordion .et_pb_toggle_title {
    font-size: 16px !important;
    padding: 17px 50px 16px 18px !important;
  }

  .hm-rules-accordion .et_pb_toggle_content {
    padding: 0 18px 20px 18px !important;
  }
}

/* ---------------------------------------------------------
   Hacienda Rules & Regulations page styling v2
   Hero now matches the Gallery page: dark green block, centered white heading,
   no extra eyebrow/kicker label, and no duplicate hero underline.
   --------------------------------------------------------- */

.hm-rules-hero.hm-page-hero,
.hm-gallery-hero {
  background-color: var(--hm-green, #016257) !important;
}

.hm-rules-hero .hm-kicker {
  display: none !important;
}

.hm-rules-hero .et_pb_text_inner h1,
.hm-rules-hero .et_pb_text_inner h2,
.hm-gallery-hero .et_pb_text_inner h1,
.hm-gallery-hero .et_pb_text_inner h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}

.hm-rules-hero .et_pb_text_inner h1::after,
.hm-rules-hero .et_pb_text_inner h2::after,
.hm-gallery-hero .et_pb_text_inner h1::after,
.hm-gallery-hero .et_pb_text_inner h2::after {
  display: none !important;
  content: none !important;
}

.hm-rules-hero .et_pb_text_inner p,
.hm-gallery-hero .et_pb_text_inner p {
  color: rgba(255,255,255,0.94) !important;
}

/* Keep internal section headings polished, with the single existing underline close to the text. */
.hm-rules-page:not(.hm-rules-hero) .et_pb_text_align_center .et_pb_text_inner h2::after,
.hm-rules-page:not(.hm-rules-hero) .et_pb_text_inner h2::after {
  margin-top: 7px !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .hm-rules-hero .et_pb_text_inner h1,
  .hm-rules-hero .et_pb_text_inner h2,
  .hm-gallery-hero .et_pb_text_inner h1,
  .hm-gallery-hero .et_pb_text_inner h2 {
    font-size: 38px !important;
  }
}

@media (max-width: 600px) {
  .hm-rules-hero .et_pb_text_inner h1,
  .hm-rules-hero .et_pb_text_inner h2,
  .hm-gallery-hero .et_pb_text_inner h1,
  .hm-gallery-hero .et_pb_text_inner h2 {
    font-size: 32px !important;
  }
}


/* ---------------------------------------------------------
   Hacienda Guidelines for Residents page styling v1
   Matches the Gallery and Rules hero/page system.
   --------------------------------------------------------- */

.hm-guidelines-hero.hm-page-hero {
  background-color: var(--hm-green, #016257) !important;
}

.hm-guidelines-hero .et_pb_text_inner h1,
.hm-guidelines-hero .et_pb_text_inner h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}

.hm-guidelines-hero .et_pb_text_inner h1::after,
.hm-guidelines-hero .et_pb_text_inner h2::after {
  display: none !important;
  content: none !important;
}

.hm-guidelines-hero .et_pb_text_inner p {
  color: rgba(255,255,255,0.94) !important;
}

.hm-guidelines-page .et_pb_divider,
.hm-guidelines-page .et_pb_divider::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.hm-guidelines-page:not(.hm-guidelines-hero) .et_pb_text_align_center .et_pb_text_inner h2::after,
.hm-guidelines-page:not(.hm-guidelines-hero) .et_pb_text_inner h2::after {
  margin-top: 7px !important;
  box-shadow: none !important;
}

.hm-guidelines-intro-card {
  border: 1px solid rgba(1,98,87,0.10) !important;
}

.hm-guidelines-intro-card h2 {
  margin-bottom: 16px !important;
}

.hm-guidelines-card {
  border: 1px solid rgba(1,98,87,0.10) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hm-guidelines-card:hover {
  transform: translateY(-3px);
  border-color: rgba(1,98,87,0.22) !important;
  box-shadow: 0 14px 32px rgba(1,98,87,0.12) !important;
}

.hm-guidelines-card h3 {
  color: var(--hm-green, #016257) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
}

.hm-guidelines-accordion .et_pb_toggle {
  border: 1px solid rgba(1,98,87,0.13) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(1,98,87,0.07) !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.hm-guidelines-accordion .et_pb_toggle_open {
  border-color: rgba(1,98,87,0.26) !important;
  box-shadow: 0 12px 30px rgba(1,98,87,0.11) !important;
}

.hm-guidelines-accordion .et_pb_toggle_title {
  color: var(--hm-green, #016257) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  line-height: 1.35 !important;
  padding: 19px 58px 18px 22px !important;
}

.hm-guidelines-accordion .et_pb_toggle_title::before {
  right: 22px !important;
  color: var(--hm-green, #016257) !important;
  font-size: 22px !important;
}

.hm-guidelines-accordion .et_pb_toggle_content {
  color: #5f6f68 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  padding: 0 22px 24px 22px !important;
}

.hm-guidelines-accordion .et_pb_toggle_content p,
.hm-guidelines-accordion .et_pb_toggle_content ol,
.hm-guidelines-accordion .et_pb_toggle_content ul,
.hm-guidelines-accordion .et_pb_toggle_content blockquote {
  margin-bottom: 14px !important;
}

.hm-guidelines-accordion .et_pb_toggle_content h4,
.hm-guidelines-accordion .et_pb_toggle_content h4 span {
  color: #5f6f68 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  margin: 0 0 13px !important;
}

.hm-guidelines-accordion .et_pb_toggle_content h3 {
  color: var(--hm-green, #016257) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 22px 0 10px !important;
}

.hm-guidelines-accordion .et_pb_toggle_content strong,
.hm-guidelines-accordion .et_pb_toggle_content h4 strong {
  color: #364641 !important;
  font-weight: 700 !important;
}

.hm-guidelines-accordion .et_pb_toggle_content ul,
.hm-guidelines-accordion .et_pb_toggle_content ol {
  padding-left: 1.35em !important;
}

.hm-guidelines-accordion .et_pb_toggle_content li {
  margin-bottom: 8px !important;
}

.hm-guidelines-accordion .et_pb_toggle_content blockquote {
  background: #f8fbf7 !important;
  border-left: 4px solid var(--hm-green, #016257) !important;
  color: #5f6f68 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  padding: 18px 22px !important;
}

.hm-guideline-rule {
  border: 0 !important;
  border-top: 1px solid rgba(1,98,87,0.15) !important;
  margin: 22px 0 !important;
}

@media (max-width: 980px) {
  .hm-guidelines-hero .et_pb_text_inner h1,
  .hm-guidelines-hero .et_pb_text_inner h2 {
    font-size: 38px !important;
  }

  .hm-guidelines-intro-card {
    padding: 28px 24px !important;
  }
}

@media (max-width: 600px) {
  .hm-guidelines-hero .et_pb_text_inner h1,
  .hm-guidelines-hero .et_pb_text_inner h2 {
    font-size: 32px !important;
  }

  .hm-guidelines-accordion .et_pb_toggle_title {
    font-size: 16px !important;
    padding: 17px 50px 16px 18px !important;
  }

  .hm-guidelines-accordion .et_pb_toggle_content {
    padding: 0 18px 20px 18px !important;
  }
}


/* ---------------------------------------------------------
   Hacienda global heading underline alignment v1
   Keeps hero and centered section heading underlines centered
   across About, Gallery, Rules, and Guidelines pages.
   --------------------------------------------------------- */

:root {
  --hm-heading-underline: #4a968b;
  --hm-hero-heading-underline: rgba(255, 255, 255, 0.72);
}

/* Hide older manual Divi divider lines on the redesigned content pages, so the pseudo underline is the only line. */
.hm-gallery-page .et_pb_divider,
.hm-rules-page .et_pb_divider,
.hm-guidelines-page .et_pb_divider,
.hm-gallery-page .et_pb_divider::before,
.hm-rules-page .et_pb_divider::before,
.hm-guidelines-page .et_pb_divider::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Shared hero heading style: same structure, centered heading, centered underline. */
.hm-page-hero .et_pb_text_align_center .et_pb_text_inner > h1,
.hm-page-hero .et_pb_text_align_center .et_pb_text_inner > h2,
.hm-gallery-hero .et_pb_text_align_center .et_pb_text_inner > h1,
.hm-gallery-hero .et_pb_text_align_center .et_pb_text_inner > h2,
.hm-rules-hero .et_pb_text_align_center .et_pb_text_inner > h1,
.hm-rules-hero .et_pb_text_align_center .et_pb_text_inner > h2,
.hm-guidelines-hero .et_pb_text_align_center .et_pb_text_inner > h1,
.hm-guidelines-hero .et_pb_text_align_center .et_pb_text_inner > h2 {
  color: #ffffff !important;
  text-align: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hm-page-hero .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-page-hero .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-gallery-hero .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-gallery-hero .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-rules-hero .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-rules-hero .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-guidelines-hero .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-guidelines-hero .et_pb_text_align_center .et_pb_text_inner > h2::after {
  content: "" !important;
  display: block !important;
  position: static !important;
  width: 74px !important;
  height: 3px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hm-hero-heading-underline) !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 12px auto 0 !important;
}

/* Center all redesigned page section-heading underlines when the heading itself is centered. */
.hm-section-heading.hm-heading-center .et_pb_text_inner > h1::after,
.hm-section-heading.hm-heading-center .et_pb_text_inner > h2::after,
.hm-section-heading.hm-heading-center .et_pb_text_inner > h3::after,
.hm-gallery-page:not(.hm-gallery-hero) .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-gallery-page:not(.hm-gallery-hero) .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-gallery-page:not(.hm-gallery-hero) .et_pb_text_align_center .et_pb_text_inner > h3::after,
.hm-rules-page:not(.hm-rules-hero) .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-rules-page:not(.hm-rules-hero) .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-rules-page:not(.hm-rules-hero) .et_pb_text_align_center .et_pb_text_inner > h3::after,
.hm-guidelines-page:not(.hm-guidelines-hero) .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-guidelines-page:not(.hm-guidelines-hero) .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-guidelines-page:not(.hm-guidelines-hero) .et_pb_text_align_center .et_pb_text_inner > h3::after {
  content: "" !important;
  display: block !important;
  position: static !important;
  width: 74px !important;
  height: 3px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hm-heading-underline) !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 8px auto 0 !important;
}

/* Override the earlier About-page light-green accent so the redesigned pages use one cleaner underline treatment. */
.hm-section-heading .et_pb_text_inner > h1::after,
.hm-section-heading .et_pb_text_inner > h2::after,
.hm-section-heading .et_pb_text_inner > h3::after {
  background: var(--hm-heading-underline) !important;
  box-shadow: none !important;
}

.hm-section-heading.hm-heading-center .et_pb_text_inner > h1::after,
.hm-section-heading.hm-heading-center .et_pb_text_inner > h2::after,
.hm-section-heading.hm-heading-center .et_pb_text_inner > h3::after {
  margin-left: auto !important;
  margin-right: auto !important;
}



/* === Homes For Sale v2 === */
/* Hacienda Homes For Sale v2 - quick-read listing cards */
.hm-homes-page.hm-homes-hero h2,
.hm-homes-page .hm-page-hero h2 {
  color: #ffffff !important;
}

.hm-homes-current-date p {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(1, 98, 87, 0.08);
  color: #016257 !important;
  font-weight: 700;
}

.hm-homes-listing-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.hm-homes-listing-row .et_pb_column {
  display: flex;
}

.hm-homes-listing-row > .et_pb_column {
  flex: 1 1 0;
  width: auto !important;
  margin-right: 0 !important;
}


.hm-homes-listing-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hm-homes-listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 98, 87, 0.24) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12) !important;
}

.hm-home-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 0;
}

.hm-home-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 32px);
  padding: 7px 11px 6px;
  border-radius: 999px;
  background: #eaf4e3;
  color: #016257;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.12);
}

.hm-home-top {
  padding-right: 112px;
}

.hm-home-space-label {
  margin: 0 0 4px !important;
  color: #7b8a83;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.hm-home-top h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: #016257 !important;
  font-size: 34px !important;
  line-height: 1.05em !important;
}

.hm-home-title {
  margin: 14px 0 2px !important;
  color: #2a3b35 !important;
  font-size: 17px;
  line-height: 1.35em;
}

.hm-home-size {
  margin: 0 0 20px !important;
  color: #63736d !important;
  font-size: 15px;
}

.hm-home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 4px 0 22px;
}

.hm-home-metric {
  min-height: 74px;
  padding: 12px 10px;
  border: 1px solid rgba(1, 98, 87, 0.10);
  border-radius: 13px;
  background: #f8fbf7;
  text-align: center;
}

.hm-home-metric span {
  display: block;
  margin-bottom: 5px;
  color: #7d8a85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15em;
  text-transform: uppercase;
}

.hm-home-metric strong {
  display: block;
  color: #016257;
  font-size: 14px;
  line-height: 1.25em;
}

.hm-home-agent {
  margin: auto -24px 0;
  padding: 18px 24px 20px;
  border-top: 1px solid rgba(1, 98, 87, 0.10);
  background: linear-gradient(135deg, #f3f8ef 0%, #eef5ed 100%);
}

.hm-home-agent-label {
  display: block;
  margin-bottom: 6px;
  color: #7d8a85;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.hm-home-agent strong,
.hm-home-agent span:not(.hm-home-agent-label):not(.hm-home-phone-icon) {
  display: block;
}

.hm-home-agent strong {
  color: #263b35;
  font-size: 16px;
  line-height: 1.35em;
}

.hm-home-agent > span:not(.hm-home-agent-label):not(.hm-home-phone-icon) {
  color: #5f6f68;
  font-size: 15px;
  line-height: 1.45em;
}

.hm-home-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #016257;
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: background .22s ease, transform .22s ease;
}

.hm-home-phone:hover {
  background: #014d45;
  transform: translateY(-1px);
}

.hm-home-phone-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  line-height: 1;
}

.hm-homes-note-card a {
  color: #016257 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hm-homes-listing-row {
    display: block;
  }

  .hm-homes-listing-row .et_pb_column {
    display: block;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
  }

  .hm-home-top {
    padding-right: 118px;
  }
}

@media (max-width: 540px) {
  .hm-home-card-inner {
    padding: 24px 20px 0;
  }

  .hm-home-status {
    position: static;
    margin: 0 0 15px;
    align-self: flex-start;
  }

  .hm-home-top {
    padding-right: 0;
  }

  .hm-home-metrics {
    grid-template-columns: 1fr;
  }

  .hm-home-metric {
    min-height: 0;
    text-align: left;
  }

  .hm-home-agent {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* --- Hacienda Homes For Sale v3 refinements --- */
/* Hacienda Homes For Sale v3 - stacked quick-read listing cards */
.hm-homes-page.hm-homes-hero h2,
.hm-homes-page .hm-page-hero h2 {
  color: #ffffff !important;
}

.hm-homes-current-date p {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(1, 98, 87, 0.08);
  color: #016257 !important;
  font-weight: 700;
}

.hm-homes-listing-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.hm-homes-listing-row .et_pb_column {
  display: flex;
}

.hm-homes-listing-row > .et_pb_column {
  flex: 1 1 0;
  width: auto !important;
  margin-right: 0 !important;
}


.hm-homes-listing-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hm-homes-listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 98, 87, 0.24) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12) !important;
}

.hm-home-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px 22px 0;
}

.hm-home-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 32px);
  padding: 7px 11px 6px;
  border-radius: 999px;
  background: #eaf4e3;
  color: #016257;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(1, 98, 87, 0.12);
}

.hm-home-top {
  padding-right: 112px;
}

.hm-home-space-label {
  margin: 0 0 4px !important;
  color: #7b8a83;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.hm-home-top h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: #016257 !important;
  font-size: 34px !important;
  line-height: 1.05em !important;
}

.hm-home-title {
  margin: 10px 0 2px !important;
  color: #2a3b35 !important;
  font-size: 17px;
  line-height: 1.35em;
}

.hm-home-size {
  margin: 0 0 14px !important;
  color: #63736d !important;
  font-size: 15px;
}

.hm-home-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

.hm-home-metric {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(1, 98, 87, 0.10);
  border-radius: 12px;
  background: #f8fbf7;
  text-align: left;
}

.hm-home-metric span {
  display: block;
  margin: 0;
  color: #7d8a85;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15em;
  text-transform: uppercase;
}

.hm-home-metric strong {
  display: block;
  color: #016257;
  font-size: 15px;
  line-height: 1.25em;
  text-align: right;
}

.hm-home-agent {
  margin: auto -22px 0;
  padding: 13px 22px 14px;
  border-top: 1px solid rgba(1, 98, 87, 0.10);
  background: linear-gradient(135deg, #f3f8ef 0%, #eef5ed 100%);
}

.hm-home-agent-label {
  display: block;
  margin-bottom: 4px;
  color: #7d8a85;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.hm-home-agent strong,
.hm-home-agent span:not(.hm-home-agent-label):not(.hm-home-phone-icon) {
  display: block;
}

.hm-home-agent strong {
  color: #263b35;
  font-size: 15px;
  line-height: 1.25em;
}

.hm-home-agent > span:not(.hm-home-agent-label):not(.hm-home-phone-icon) {
  color: #5f6f68;
  font-size: 14px;
  line-height: 1.3em;
}

.hm-home-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #016257;
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: background .22s ease, transform .22s ease;
}

.hm-home-phone:hover {
  background: #014d45;
  transform: translateY(-1px);
}

.hm-home-phone-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  line-height: 1;
}

.hm-homes-note-card a {
  color: #016257 !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hm-homes-listing-row {
    display: block;
  }

  .hm-homes-listing-row .et_pb_column {
    display: block;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
  }

  .hm-home-top {
    padding-right: 118px;
  }
}

@media (max-width: 540px) {
  .hm-home-card-inner {
    padding: 22px 20px 0;
  }

  .hm-home-status {
    position: static;
    margin: 0 0 15px;
    align-self: flex-start;
  }

  .hm-home-top {
    padding-right: 0;
  }

  .hm-home-metric {
    text-align: left;
  }

  .hm-home-agent {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* v3 refinement: always stack the key detail boxes and tighten agent footer spacing. */
.hm-homes-page .hm-home-metrics {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 0 16px !important;
}
.hm-homes-page .hm-home-metric {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  text-align: left !important;
}
.hm-homes-page .hm-home-metric span {
  margin: 0 !important;
}
.hm-homes-page .hm-home-metric strong {
  text-align: right !important;
}
.hm-homes-page .hm-home-agent {
  padding-top: 13px !important;
  padding-bottom: 14px !important;
}
.hm-homes-page .hm-home-agent-label {
  margin-bottom: 4px !important;
}
.hm-homes-page .hm-home-phone {
  margin-top: 8px !important;
}



/* ---------------------------------------------------------
   Hacienda Contact page styling v1
   Matches the redesigned Hacienda pages and polishes Formidable form output.
   --------------------------------------------------------- */

.hm-contact-hero.hm-page-hero {
  background-color: var(--hm-green, #016257) !important;
}

.hm-contact-hero .et_pb_text_inner h1,
.hm-contact-hero .et_pb_text_inner h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}

.hm-contact-hero .et_pb_text_inner p {
  color: rgba(255,255,255,0.94) !important;
}

.hm-contact-page .et_pb_divider,
.hm-contact-page .et_pb_divider::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.hm-contact-page:not(.hm-contact-hero) .et_pb_text_align_center .et_pb_text_inner > h1::after,
.hm-contact-page:not(.hm-contact-hero) .et_pb_text_align_center .et_pb_text_inner > h2::after,
.hm-contact-page:not(.hm-contact-hero) .et_pb_text_align_center .et_pb_text_inner > h3::after {
  content: "" !important;
  display: block !important;
  position: static !important;
  width: 74px !important;
  height: 3px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hm-heading-underline, #4a968b) !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 8px auto 0 !important;
}

.hm-contact-quick-cards {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.hm-contact-quick-cards .et_pb_column {
  display: flex;
}

.hm-contact-quick-cards > .et_pb_column {
  flex: 1 1 0;
  width: auto !important;
  margin-right: 0 !important;
}

.hm-contact-card {
  width: 100%;
  border: 1px solid rgba(1,98,87,0.10) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hm-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(1,98,87,0.24) !important;
  box-shadow: 0 14px 32px rgba(1,98,87,0.12) !important;
}

.hm-contact-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hm-contact-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f0f7ec;
  color: var(--hm-green, #016257);
  font-size: 20px;
  line-height: 1;
}

.hm-contact-card h3,
.hm-contact-map-card h3,
.hm-contact-form-card h3,
.hm-contact-note-card h3 {
  color: var(--hm-green, #016257) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 0 10px !important;
}

.hm-contact-card p,
.hm-contact-map-card p,
.hm-contact-form-card p,
.hm-contact-note-card p {
  color: #5f6f68 !important;
}

.hm-contact-text-link,
.hm-contact-phone-link,
.hm-contact-map-card a {
  color: var(--hm-green, #016257) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.hm-contact-phone-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--hm-green, #016257);
  color: #ffffff !important;
  text-decoration: none !important;
}

.hm-contact-phone-link:hover {
  background: #014d45;
}

.hm-contact-small-note {
  margin-top: auto !important;
  color: #7d8a85 !important;
  font-size: 14px !important;
}

.hm-contact-main-row {
  align-items: stretch;
}

.hm-contact-main-row .et_pb_column {
  display: flex;
  flex-direction: column;
}

.hm-contact-map-card,
.hm-contact-form-card,
.hm-contact-note-card {
  border: 1px solid rgba(1,98,87,0.10) !important;
}

.hm-contact-map-card {
  margin-bottom: 18px !important;
}

.hm-contact-map-embed {
  overflow: hidden;
  border: 1px solid rgba(1,98,87,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  line-height: 0;
}

.hm-contact-map-embed iframe {
  display: block;
  width: 100% !important;
  min-height: 360px;
  border: 0 !important;
}

.hm-contact-form-card {
  flex: 1 1 auto;
}

.hm-contact-form-intro {
  margin-bottom: 20px !important;
}

.hm-contact-form-card .frm_forms,
.hm-contact-form-card .frm_forms form {
  margin-top: 0 !important;
}

.hm-contact-form-card .frm_forms .frm_form_field {
  margin-bottom: 15px !important;
}

.hm-contact-form-card .frm_forms label,
.hm-contact-form-card .frm_primary_label {
  color: #31463f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  line-height: 1.3 !important;
  margin-bottom: 6px !important;
}

.hm-contact-form-card .frm_forms input[type="text"],
.hm-contact-form-card .frm_forms input[type="email"],
.hm-contact-form-card .frm_forms input[type="tel"],
.hm-contact-form-card .frm_forms input[type="url"],
.hm-contact-form-card .frm_forms input[type="number"],
.hm-contact-form-card .frm_forms textarea,
.hm-contact-form-card .frm_forms select {
  width: 100% !important;
  min-height: 46px;
  border: 1px solid rgba(1,98,87,0.18) !important;
  border-radius: 10px !important;
  background: #f8fbf7 !important;
  color: #31463f !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  padding: 11px 13px !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hm-contact-form-card .frm_forms textarea {
  min-height: 146px;
  resize: vertical;
}

.hm-contact-form-card .frm_forms input:focus,
.hm-contact-form-card .frm_forms textarea:focus,
.hm-contact-form-card .frm_forms select:focus {
  border-color: rgba(1,98,87,0.55) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(1,98,87,0.10) !important;
  outline: none !important;
}

.hm-contact-form-card .frm_submit {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

.hm-contact-form-card .frm_submit button,
.hm-contact-form-card .frm_submit input[type="submit"],
.hm-contact-form-card .frm_button_submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 12px 22px !important;
  border: 1px solid var(--hm-green, #016257) !important;
  border-radius: 999px !important;
  background: var(--hm-green, #016257) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 22px rgba(1,98,87,0.20) !important;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hm-contact-form-card .frm_submit button:hover,
.hm-contact-form-card .frm_submit input[type="submit"]:hover,
.hm-contact-form-card .frm_button_submit:hover {
  background: #014d45 !important;
  border-color: #014d45 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(1,98,87,0.25) !important;
}

/* Keep Formidable's honeypot / spam-prevention field from appearing as a stray line under the send button. */
.hm-contact-form-card .frm_verify,
.hm-contact-form-card .frm_forms .frm_verify,
.hm-contact-form-card .frm_forms .frm_hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hm-contact-form-card .frm_error,
.hm-contact-form-card .frm_error_style {
  color: #8a2d2d !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.hm-contact-form-card .frm_error_style {
  margin: 0 0 16px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(138,45,45,0.18) !important;
  border-radius: 10px !important;
  background: #fff6f4 !important;
}

.hm-contact-form-card .frm_message {
  margin: 0 0 16px !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(1,98,87,0.18) !important;
  border-radius: 10px !important;
  background: #f0f7ec !important;
  color: #016257 !important;
}

@media (max-width: 980px) {
  .hm-contact-hero .et_pb_text_inner h1,
  .hm-contact-hero .et_pb_text_inner h2 {
    font-size: 38px !important;
  }

  .hm-contact-quick-cards {
    display: block;
  }

  .hm-contact-quick-cards .et_pb_column {
    display: block;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 22px !important;
  }

  .hm-contact-main-row .et_pb_column {
    display: block;
  }

  .hm-contact-form-card {
    margin-top: 24px !important;
  }
}

@media (max-width: 600px) {
  .hm-contact-hero .et_pb_text_inner h1,
  .hm-contact-hero .et_pb_text_inner h2 {
    font-size: 32px !important;
  }

  .hm-contact-map-card,
  .hm-contact-form-card,
  .hm-contact-note-card {
    padding: 24px 20px !important;
  }

  .hm-contact-map-embed iframe {
    min-height: 300px;
  }
}

/* Hacienda Search Results Page
   Applies to the custom child-theme search.php template and includes fallback styling for default Divi search output. */

.hm-search-results-page {
  background: #f8fbf7;
}

.hm-search-hero {
  background: #016257;
  padding: 78px 0 62px;
  color: #fff;
  text-align: center;
}

.hm-search-hero__inner {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.hm-search-hero h1,
.hm-search-hero h2 {
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  padding-bottom: 0;
  text-align: center;
}

.hm-search-hero h1::after,
.hm-search-hero h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 14px auto 0;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}

.hm-search-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1.8;
}

.hm-search-form-wrap {
  margin: 26px auto 0;
  max-width: 650px;
}

.hm-search-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.hm-search-form label {
  flex: 1;
  margin: 0;
}

.hm-search-form .screen-reader-text {
  position: absolute;
  left: -9999px;
}

.hm-search-form input[type="search"] {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  color: #33443e;
  background: #fff;
  font-size: 16px;
  outline: none;
}

.hm-search-form input[type="search"]:focus {
  box-shadow: 0 0 0 3px rgba(184,215,122,0.38);
}

.hm-search-form button,
.hm-search-form input[type="submit"] {
  min-width: 118px;
  height: 50px;
  border: 0;
  border-radius: 11px;
  background: #b8d77a;
  color: #01483f;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hm-search-form button:hover,
.hm-search-form input[type="submit"]:hover {
  background: #c4e186;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.hm-search-section {
  padding: 70px 0 78px;
}

.hm-search-section__inner {
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

.hm-search-summary {
  max-width: 840px;
  margin: 0 auto 30px;
  text-align: center;
}

.hm-search-summary h2 {
  color: #016257 !important;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
}

.hm-search-summary h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 12px auto 0;
  background: #016257;
  border-radius: 999px;
}

.hm-search-summary p {
  color: #5f6f68;
  font-size: 17px;
  line-height: 1.75;
  margin: 0 auto;
}

.hm-search-results-list {
  display: grid;
  gap: 18px;
}

.hm-search-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(1,98,87,0.12);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hm-search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.11);
  border-color: rgba(1,98,87,0.26);
}

.hm-search-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #016257;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hm-search-card__meta span {
  display: inline-flex;
  align-items: center;
}

.hm-search-card__meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #b8d77a;
}

.hm-search-card h3 {
  margin: 0 0 10px;
  color: #016257 !important;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.hm-search-card h3 a {
  color: #016257 !important;
  text-decoration: none;
}

.hm-search-card h3 a:hover {
  color: #01483f !important;
  text-decoration: underline;
}

.hm-search-card__excerpt {
  color: #5f6f68;
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.hm-search-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f6ec;
  color: #016257 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.hm-search-card__link:hover {
  background: #e7f1dc;
  color: #01483f !important;
}

.hm-search-no-results {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(1,98,87,0.12);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

.hm-search-no-results h2 {
  color: #016257 !important;
  font-weight: 700;
  margin-bottom: 10px;
}

.hm-search-no-results p {
  color: #5f6f68;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 22px;
}

.hm-search-pagination {
  margin-top: 34px;
  text-align: center;
}

.hm-search-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-search-pagination a,
.hm-search-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(1,98,87,0.18);
  background: #fff;
  color: #016257;
  font-weight: 700;
}

.hm-search-pagination .current,
.hm-search-pagination a:hover {
  background: #016257;
  color: #fff;
  text-decoration: none;
}

/* Fallback: if the child search.php is not active, make Divi's default search page closer to the Hacienda style. */
body.search:not(.et-fb) #main-content .container {
  max-width: 1040px;
  width: 90%;
  padding-top: 58px;
  padding-bottom: 70px;
}

body.search:not(.et-fb) #left-area {
  width: 100%;
  padding-right: 0;
}

body.search:not(.et-fb) #sidebar {
  display: none;
}

body.search:not(.et-fb) .et_pb_post {
  background: #fff;
  border: 1px solid rgba(1,98,87,0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.07);
}

body.search:not(.et-fb) .et_pb_post h2,
body.search:not(.et-fb) .et_pb_post h2 a {
  color: #016257 !important;
  font-weight: 700;
}

@media (max-width: 767px) {
  .hm-search-hero {
    padding: 62px 0 52px;
  }

  .hm-search-form {
    flex-direction: column;
  }

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

  .hm-search-section {
    padding: 54px 0 62px;
  }

  .hm-search-card {
    padding: 22px 20px;
  }

  .hm-search-card h3 {
    font-size: 21px;
  }
}
