/*
Theme Name: TrinhNgSC
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* =========================================================
   Trinh Nguyen / AgentOwned inspired Flatsome base style
   Theme: Flatsome / WordPress
   Purpose: Base global styling layer
   ========================================================= */
@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Noto+Serif:ital,wght@0,500;0,600;0,700;0,800;1,500;1,700&display=swap');

/* -------------------------
   1. Brand tokens
-------------------------- */
:root {
  --tn-primary: #15264a;       /* deep navy */
  --tn-primary-2: #0d1a33;
  --tn-accent: #c9a24d;        /* warm gold */
  --tn-accent-dark: #a9822f;
  --tn-bg: #f7f5f0;
  --tn-bg-soft: #fbfaf7;
  --tn-text: #1f2933;
  --tn-muted: #6b7280;
  --tn-border: #e5e0d6;
  --tn-white: #ffffff;

  --tn-radius-sm: 6px;
  --tn-radius: 12px;
  --tn-radius-lg: 20px;

  --tn-shadow: 0 12px 35px rgba(13, 26, 51, 0.08);
  --tn-shadow-hover: 0 18px 45px rgba(13, 26, 51, 0.14);

  --tn-font-body: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --tn-font-heading: "Noto Serif", "Be Vietnam Pro", Georgia, "Times New Roman", serif;
}

/* -------------------------
   2. Global base
-------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--tn-bg-soft);
  color: var(--tn-text);
  font-family: var(--tn-font-body);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--tn-primary);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--tn-accent);
}

h1, h2, h3, h4, h5, h6,
.section-title-main,
.banner h1,
.banner h2 {
  font-family: var(--tn-font-heading);
  color: var(--tn-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

p {
  color: var(--tn-text);
}

.lead,
.banner p,
.section-subtitle {
  color: var(--tn-muted);
  font-size: 1.1rem;
}

/* -------------------------
   3. Header / navigation
-------------------------- */
.header-wrapper,
#masthead {
  background: var(--tn-white);
  box-shadow: 0 4px 24px rgba(13, 26, 51, 0.06);
}

.header-main {
  border-bottom: 1px solid rgba(201, 162, 77, 0.18);
}

.logo img {
  max-height: 58px;
}

.nav > li > a,
.header-nav-main.nav > li > a {
  color: var(--tn-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav > li.active > a,
.nav > li.current-menu-item > a,
.nav > li > a:hover {
  color: var(--tn-accent);
}

.nav-dropdown {
  border-radius: var(--tn-radius);
  border: 1px solid var(--tn-border);
  box-shadow: var(--tn-shadow);
  padding: 12px 0;
}

.nav-dropdown > li > a {
  color: var(--tn-primary);
  font-weight: 500;
  padding: 10px 18px;
}

.nav-dropdown > li > a:hover {
  background: var(--tn-bg);
  color: var(--tn-accent-dark);
}

/* Header CTA button */
.header-button .button,
.nav > li > a.button {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2) !important;
  border-radius: 999px;
  font-weight: 700;
}

/* -------------------------
   4. Buttons
-------------------------- */
.button,
button,
input[type="submit"],
.ux-button,
.button.primary,
.woocommerce button.button,
.woocommerce a.button {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.button.primary,
input[type="submit"],
.ux-button.primary {
  background: var(--tn-primary);
  border-color: var(--tn-primary);
  color: var(--tn-white);
}

.button.primary:hover,
input[type="submit"]:hover,
.ux-button.primary:hover {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2);
  transform: translateY(-2px);
  box-shadow: var(--tn-shadow-hover);
}

.button.secondary,
.button.is-outline {
  border-color: var(--tn-accent);
  color: var(--tn-primary);
}

.button.is-outline.white {
  color: var(--tn-white);
}

.button.secondary:hover,
.button.is-outline:hover {
  background: var(--tn-accent);
  color: var(--tn-primary-2);
}

/* -------------------------
   5. Hero / banner
-------------------------- */
.banner,
.page-title,
.hero-section {
  background-color: var(--tn-primary);
  color: var(--tn-white);
}

.banner::before,
.hero-section::before {
  background: linear-gradient(
    90deg,
    rgba(13, 26, 51, 0.88) 0%,
    rgba(13, 26, 51, 0.58) 48%,
    rgba(13, 26, 51, 0.16) 100%
  );
}

.banner h1,
.banner h2,
.page-title h1,
.hero-section h1,
.hero-section h2 {
  color: var(--tn-white);
}

.banner p,
.hero-section p {
  color: rgba(255, 255, 255, 0.86);
}

.banner .button,
.hero-section .button {
  margin-top: 18px;
}

/* Small gold label above hero title */
.tn-eyebrow,
.banner .is-small,
.section-label {
  display: inline-block;
  color: var(--tn-accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

/* -------------------------
   6. Sections
-------------------------- */
.section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.section.bg-light,
.tn-section-soft {
  background: var(--tn-bg);
}

.section-title {
  border-bottom: 0;
}

.section-title-main {
  border-bottom: 2px solid var(--tn-accent);
  padding-bottom: 8px;
}

.section-title-center span {
  border-bottom-color: var(--tn-accent);
}

/* -------------------------
   7. Cards / boxes
-------------------------- */
.box,
.icon-box,
.tn-card,
.post-item .box,
.product-small .box {
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: var(--tn-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.box:hover,
.tn-card:hover,
.post-item .box:hover,
.product-small .box:hover {
  transform: translateY(-4px);
  box-shadow: var(--tn-shadow-hover);
}

.box-text,
.icon-box-text {
  padding: 22px;
}

.box-text h3,
.box-text h4,
.icon-box h3,
.icon-box h4 {
  color: var(--tn-primary);
}

/* -------------------------
   8. Real-estate listing style
-------------------------- */
.tn-listing-card,
.property-card,
.listing-card {
  background: var(--tn-white);
  border-radius: var(--tn-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tn-border);
  box-shadow: var(--tn-shadow);
}

.tn-listing-card .price,
.property-card .price,
.listing-price {
  color: var(--tn-primary);
  font-size: 1.6rem;
  font-weight: 800;
}

.tn-listing-card .meta,
.property-card .meta,
.listing-meta {
  color: var(--tn-muted);
  font-size: 0.92rem;
}

.tn-listing-card .status,
.property-status,
.badge {
  background: var(--tn-accent);
  color: var(--tn-primary-2);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 10px;
  text-transform: uppercase;
}

/* -------------------------
   9. Search form / valuation form
-------------------------- */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="search"],
form input[type="url"],
form input[type="number"],
form textarea,
form select,
.search-field {
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-sm);
  background: var(--tn-white);
  box-shadow: none;
  color: var(--tn-text);
}

form input:focus,
form textarea:focus,
form select:focus,
.search-field:focus {
  border-color: var(--tn-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.18);
}

.tn-search-box,
.searchform,
.property-search,
.valuation-form {
  background: var(--tn-white);
  border-radius: var(--tn-radius-lg);
  padding: 24px;
  box-shadow: var(--tn-shadow);
  border: 1px solid var(--tn-border);
}

/* -------------------------
   10. CTA blocks
-------------------------- */
.tn-cta,
.cta-section,
.home-worth-section {
  background: var(--tn-primary);
  color: var(--tn-white);
  border-radius: var(--tn-radius-lg);
  padding: clamp(32px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}

.tn-cta h2,
.cta-section h2,
.home-worth-section h2 {
  color: var(--tn-white);
}

.tn-cta p,
.cta-section p,
.home-worth-section p {
  color: rgba(255, 255, 255, 0.82);
}

.tn-cta::after,
.cta-section::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(201, 162, 77, 0.18);
}

/* -------------------------
   11. Blog / content
-------------------------- */
.entry-title,
.blog-post-title {
  color: var(--tn-primary);
}

.entry-meta,
.post-meta,
.byline {
  color: var(--tn-muted);
  font-size: 0.88rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--tn-accent);
  background: var(--tn-bg);
  padding: 18px 24px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
}

/* -------------------------
   12. Footer
-------------------------- */
.footer-wrapper,
.absolute-footer,
#footer {
  background: var(--tn-primary-2);
  color: rgba(255, 255, 255, 0.78);
}

.footer-wrapper h3,
.footer-wrapper h4,
.footer-wrapper .widget-title {
  color: var(--tn-white);
}

.footer-wrapper a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-wrapper a:hover {
  color: var(--tn-accent);
}

.absolute-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------
   13. Mobile refinement
-------------------------- */
@media (max-width: 849px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .banner,
  .hero-section {
    text-align: center;
  }

  .header-main {
    height: auto;
  }

  .mobile-nav,
  .off-canvas-left .mfp-content {
    background: var(--tn-white);
  }

  .off-canvas .nav-vertical > li > a {
    color: var(--tn-primary);
    font-weight: 700;
  }
}

@media (max-width: 549px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.3rem;
  }

  .tn-search-box,
  .searchform,
  .property-search,
  .valuation-form {
    padding: 18px;
  }

  .button,
  input[type="submit"] {
    width: 100%;
  }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* =====================================================
   Flatsome dual logo header fix
   Main logo + second logo on the left
   Menu/search stay on the right
===================================================== */
/* =====================================================
   Dual logo inside Flatsome logo container
===================================================== */

.header-main #logo {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  width: auto !important;
  max-width: none !important;
}

.header-main #logo > a {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.header-main #logo .tn-second-logo {
  flex: 0 0 auto;
  /* padding-left: 14px;
  border-left: 1px solid rgba(20, 54, 74, 0.25); */
}

.header-main #logo .tn-second-logo-img {
  display: block !important;
  width: auto !important;
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
  transition: max-height .25s ease, opacity .25s ease, transform .25s ease;
}

/* Smooth effect for both logos */
.header-main #logo img {
  transition: max-height .25s ease, opacity .25s ease, transform .25s ease;
}

/* Sticky header effect */
.header-wrapper.stuck .header-main #logo .tn-second-logo-img,
.stuck .header-main #logo .tn-second-logo-img {
  max-height: 26px;
}

.header-wrapper.stuck .header-main #logo,
.stuck .header-main #logo {
  gap: 10px;
}

.header-wrapper.stuck .header-main #logo .tn-second-logo,
.stuck .header-main #logo .tn-second-logo {
  padding-left: 10px;
}

/* Prevent menu wrapping */
@media (min-width: 850px) {
  .header-main .header-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  .header-main .flex-left {
    flex: 0 0 auto;
  }

  .header-main .flex-right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .header-main .nav {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

/* Medium desktop */
@media (min-width: 850px) and (max-width: 1180px) {
  .header-main #logo {
    gap: 10px;
  }

  .header-main #logo .tn-second-logo {
    padding-left: 10px;
  }

  .header-main #logo .tn-second-logo-img {
    max-width: 78px;
    max-height: 26px;
  }

  .header-main .nav > li > a {
    font-size: 12px;
    padding-left: 3px;
    padding-right: 3px;
  }
}

/* Mobile */
@media (max-width: 849px) {
  .header-main #logo .tn-second-logo {
    display: none !important;
  }
}

/* ========================================
 * ======================================== */
/* =========================================================
   Global Site Footer
   Uses main brand CSS variables
   ========================================================= */

.tn-site-footer {
  background: var(--tn-primary-2);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--tn-font-body);
}

.tn-footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top lead form */
.tn-footer-lead {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.22), transparent 34%),
    linear-gradient(135deg, var(--tn-primary), var(--tn-primary-2));
}

.tn-footer-lead::before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.tn-footer-lead-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
}

.tn-footer-lead-copy h2 {
  margin: 0 0 14px;
  color: var(--tn-white);
  font-family: var(--tn-font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.tn-footer-lead-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.75;
}

.tn-footer-lead-form {
  padding: clamp(22px, 4vw, 34px);
  background: var(--tn-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow-hover);
}

/* Main footer */
.tn-footer-main {
  padding: 72px 0 54px;
  background: var(--tn-primary-2);
}

.tn-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1.15fr;
  gap: 36px;
}

.tn-footer-logo {
  display: inline-flex;
  margin-bottom: 22px;
}

.tn-footer-logo img {
  max-width: 210px;
  max-height: 82px;
  display: block;
}

.tn-footer-brand p {
  max-width: 340px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.tn-footer-col h3,
.tn-footer-contact h3 {
  margin: 0 0 18px;
  color: var(--tn-white);
  font-family: var(--tn-font-heading);
  font-size: 1.35rem;
}

.tn-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-footer-col li {
  margin: 0 0 11px;
}

.tn-footer-col a,
.tn-footer-contact a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.tn-footer-col a:hover,
.tn-footer-contact a:hover {
  color: var(--tn-accent);
}

/* Socials */
.tn-footer-socials {
  display: flex;
  gap: 10px;
}

.tn-footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tn-accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.tn-footer-socials a:hover {
  background: var(--tn-accent);
  color: var(--tn-primary-2);
  transform: translateY(-2px);
}

.tn-footer-socials svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Contact */
.tn-footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.tn-footer-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(201, 162, 77, 0.14);
  color: var(--tn-accent);
}

.tn-footer-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tn-footer-license {
  margin-top: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tn-radius);
}

.tn-footer-license p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tn-footer-license p:last-child {
  margin-bottom: 0;
}

.tn-footer-license strong {
  color: var(--tn-white);
}

/* Bottom bar */
.tn-footer-bottom {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tn-footer-bottom-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tn-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

/* Contact Form 7 inside footer */
.tn-footer-lead-form .wpcf7 {
  margin: 0;
}

.tn-footer-lead-form .tn-cf7-form {
  display: grid;
  gap: 14px;
}

.tn-footer-lead-form .tn-cf7-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tn-footer-lead-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--tn-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.tn-footer-lead-form input[type="text"],
.tn-footer-lead-form input[type="email"],
.tn-footer-lead-form input[type="tel"],
.tn-footer-lead-form select,
.tn-footer-lead-form textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  background: var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-sm);
  color: var(--tn-text);
  font-family: var(--tn-font-body);
  font-size: 0.96rem;
  box-shadow: none;
}

.tn-footer-lead-form textarea {
  min-height: 92px;
  resize: vertical;
}

.tn-footer-lead-form input:focus,
.tn-footer-lead-form select:focus,
.tn-footer-lead-form textarea:focus {
  border-color: var(--tn-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.18);
  outline: none;
}

.tn-footer-lead-form .wpcf7-submit {
  width: 100%;
  min-height: 50px;
  margin: 0;
  background: var(--tn-primary);
  border-color: var(--tn-primary);
  border-radius: 999px;
  color: var(--tn-white);
  font-family: var(--tn-font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tn-footer-lead-form .wpcf7-submit:hover {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2);
  transform: translateY(-2px);
  box-shadow: var(--tn-shadow-hover);
}

.tn-footer-lead-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 600;
}

.tn-footer-lead-form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--tn-radius-sm);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .tn-footer-lead-grid,
  .tn-footer-grid {
    grid-template-columns: 1fr;
  }

  .tn-footer-grid {
    gap: 32px;
  }

  .tn-footer-brand p {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .tn-footer-lead {
    padding: 56px 0;
  }

  .tn-footer-main {
    padding: 54px 0 42px;
  }

  .tn-footer-lead-form .tn-cf7-row {
    grid-template-columns: 1fr;
  }

  .tn-footer-bottom-inner {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Category Archive Template
   Uses main brand CSS variables
   ========================================================= */

.tn-category-page {
  background: var(--tn-bg-soft);
  color: var(--tn-text);
  font-family: var(--tn-font-body);
}

.tn-category-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Hero */
.tn-category-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.18), transparent 34%),
    linear-gradient(135deg, var(--tn-primary), var(--tn-primary-2));
  color: var(--tn-white);
}

.tn-category-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.tn-category-hero .tn-category-container {
  position: relative;
  z-index: 2;
}

.tn-category-breadcrumb {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.tn-category-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.tn-category-breadcrumb a:hover {
  color: var(--tn-accent);
}

.tn-category-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--tn-white);
  font-family: var(--tn-font-heading);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.tn-category-description {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.75;
}

.tn-category-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

/* Content */
.tn-category-content {
  padding: 76px 0 88px;
}

.tn-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.tn-category-posts {
  display: grid;
  gap: 24px;
}

/* Post card */
.tn-category-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tn-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tn-shadow-hover);
}

.tn-category-thumb {
  display: block;
  min-height: 230px;
  background: var(--tn-bg);
}

.tn-category-thumb img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: cover;
}

.tn-category-placeholder {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.2), transparent 34%),
    var(--tn-primary);
}

.tn-category-placeholder span {
  color: var(--tn-accent);
  font-size: 4rem;
  font-family: var(--tn-font-heading);
  font-weight: 800;
}

.tn-category-card-body {
  padding: 28px;
}

.tn-category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--tn-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tn-category-card h2 {
  margin: 0 0 12px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.tn-category-card h2 a {
  color: inherit;
  text-decoration: none;
}

.tn-category-card h2 a:hover {
  color: var(--tn-accent-dark);
}

.tn-category-excerpt {
  color: var(--tn-muted);
  line-height: 1.7;
}

.tn-category-excerpt p {
  margin: 0;
}

.tn-category-readmore {
  display: inline-flex;
  margin-top: 18px;
  color: var(--tn-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.tn-category-readmore:hover {
  color: var(--tn-primary);
}

/* Sidebar */
.tn-category-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 110px;
}

.tn-category-widget {
  padding: 24px;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: var(--tn-shadow);
}

.tn-category-widget h3 {
  margin: 0 0 16px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: 1.45rem;
}

.tn-category-widget p {
  margin: 0 0 18px;
  color: var(--tn-muted);
  line-height: 1.7;
}

.tn-category-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-category-widget li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--tn-border);
}

.tn-category-widget li:last-child {
  border-bottom: 0;
}

.tn-category-widget a {
  color: var(--tn-primary);
  font-weight: 700;
  text-decoration: none;
}

.tn-category-widget a:hover {
  color: var(--tn-accent-dark);
}

.tn-category-contact-widget {
  background: var(--tn-primary);
  color: var(--tn-white);
}

.tn-category-contact-widget h3 {
  color: var(--tn-white);
}

.tn-category-contact-widget p {
  color: rgba(255, 255, 255, 0.82);
}

/* Pagination */
.tn-category-pagination {
  margin-top: 18px;
}

.tn-category-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-category-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: 999px;
  color: var(--tn-primary);
  font-weight: 800;
  text-decoration: none;
}

.tn-category-pagination .page-numbers.current,
.tn-category-pagination .page-numbers:hover {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2);
}

/* Empty */
.tn-category-empty {
  padding: 48px;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
  text-align: center;
}

.tn-category-empty h2 {
  margin: 0 0 12px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
}

/* Responsive */
@media (max-width: 960px) {
  .tn-category-layout {
    grid-template-columns: 1fr;
  }

  .tn-category-sidebar {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tn-category-card {
    grid-template-columns: 1fr;
  }

  .tn-category-thumb,
  .tn-category-thumb img,
  .tn-category-placeholder {
    min-height: 220px;
  }
}

@media (max-width: 549px) {
  .tn-category-hero {
    padding: 58px 0;
  }

  .tn-category-content {
    padding: 54px 0 64px;
  }

  .tn-category-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tn-category-card-body,
  .tn-category-widget {
    padding: 22px;
  }
}

/* =========================================================
   Single Post Template
   Uses main brand CSS variables
   ========================================================= */

.tn-single-post-page {
  background: var(--tn-bg-soft);
  color: var(--tn-text);
  font-family: var(--tn-font-body);
}

.tn-single-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Hero */
.tn-single-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.18), transparent 34%),
    linear-gradient(135deg, var(--tn-primary), var(--tn-primary-2));
  color: var(--tn-white);
}

.tn-single-hero.has-image {
  background-image:
    linear-gradient(
      90deg,
      rgba(13, 26, 51, 0.94),
      rgba(13, 26, 51, 0.82),
      rgba(13, 26, 51, 0.48)
    ),
    var(--tn-single-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tn-single-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(201, 162, 77, 0.16);
}

.tn-single-hero .tn-single-container {
  position: relative;
  z-index: 2;
}

.tn-single-breadcrumb {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.tn-single-breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
}

.tn-single-breadcrumb a:hover {
  color: var(--tn-accent);
}

.tn-single-category-label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  background: var(--tn-accent);
  color: var(--tn-primary-2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.tn-single-category-label:hover {
  color: var(--tn-primary-2);
  opacity: 0.9;
}

.tn-single-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--tn-white);
  font-family: var(--tn-font-heading);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.tn-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
}

.tn-single-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--tn-accent);
}

/* Layout */
.tn-single-content-section {
  padding: 76px 0 86px;
}

.tn-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.tn-single-article {
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
  padding: clamp(28px, 5vw, 56px);
}

.tn-single-excerpt {
  margin-bottom: 30px;
  padding: 24px 28px;
  background: var(--tn-bg);
  border-left: 4px solid var(--tn-accent);
  border-radius: var(--tn-radius);
  color: var(--tn-primary);
  font-size: 1.14rem;
  line-height: 1.75;
  font-weight: 600;
}

.tn-single-excerpt p {
  margin: 0;
}

/* Content typography */
.tn-single-content {
  color: var(--tn-text);
  font-size: 1.05rem;
  line-height: 1.85;
}

.tn-single-content h2,
.tn-single-content h3,
.tn-single-content h4,
.tn-single-content h5,
.tn-single-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  line-height: 1.2;
}

.tn-single-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.tn-single-content h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.tn-single-content p {
  margin-bottom: 1.25em;
}

.tn-single-content a {
  color: var(--tn-accent-dark);
  font-weight: 700;
}

.tn-single-content a:hover {
  color: var(--tn-primary);
}

.tn-single-content ul,
.tn-single-content ol {
  margin-bottom: 1.35em;
  padding-left: 1.35em;
}

.tn-single-content li {
  margin-bottom: 0.45em;
}

.tn-single-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--tn-bg);
  border-left: 4px solid var(--tn-accent);
  border-radius: var(--tn-radius);
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: 1.25rem;
  line-height: 1.6;
}

.tn-single-content img {
  border-radius: var(--tn-radius);
}

.tn-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}

.tn-single-content th,
.tn-single-content td {
  padding: 12px 14px;
  border: 1px solid var(--tn-border);
}

.tn-single-content th {
  background: var(--tn-bg);
  color: var(--tn-primary);
}

/* Tags */
.tn-single-tags {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--tn-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tn-single-tags span {
  color: var(--tn-primary);
  font-weight: 900;
}

.tn-single-tags a {
  display: inline-flex;
  padding: 7px 12px;
  background: var(--tn-bg);
  border: 1px solid var(--tn-border);
  border-radius: 999px;
  color: var(--tn-primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.tn-single-tags a:hover {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2);
}

/* Share */
.tn-single-share {
  margin-top: 28px;
  padding: 22px;
  background: var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tn-single-share span {
  margin-right: 6px;
  color: var(--tn-primary);
  font-weight: 900;
}

.tn-single-share a {
  padding: 8px 13px;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: 999px;
  color: var(--tn-primary);
  font-weight: 800;
  text-decoration: none;
}

.tn-single-share a:hover {
  background: var(--tn-primary);
  border-color: var(--tn-primary);
  color: var(--tn-white);
}

/* Post navigation */
.tn-single-post-nav {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--tn-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tn-single-post-nav a {
  display: block;
  padding: 20px;
  background: var(--tn-bg);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  color: var(--tn-primary);
  text-decoration: none;
}

.tn-single-post-nav span {
  display: block;
  margin-bottom: 6px;
  color: var(--tn-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tn-single-post-nav strong {
  display: block;
  line-height: 1.35;
}

.tn-single-post-nav a:hover {
  border-color: var(--tn-accent);
  box-shadow: var(--tn-shadow);
}

.tn-single-next {
  text-align: right;
}

/* Sidebar */
.tn-single-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}

.tn-single-widget {
  padding: 24px;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: var(--tn-shadow);
}

.tn-single-widget h3 {
  margin: 0 0 16px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: 1.45rem;
}

.tn-single-widget p {
  margin: 0 0 18px;
  color: var(--tn-muted);
  line-height: 1.7;
}

.tn-single-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-single-widget li {
  padding: 10px 0;
  border-bottom: 1px solid var(--tn-border);
}

.tn-single-widget li:last-child {
  border-bottom: 0;
}

.tn-single-widget a {
  color: var(--tn-primary);
  font-weight: 700;
  text-decoration: none;
}

.tn-single-widget a:hover {
  color: var(--tn-accent-dark);
}

.tn-single-contact-widget {
  background: var(--tn-primary);
  color: var(--tn-white);
}

.tn-single-contact-widget h3 {
  color: var(--tn-white);
}

.tn-single-contact-widget p {
  color: rgba(255, 255, 255, 0.82);
}

.tn-single-contact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.tn-single-contact-list a,
.tn-single-contact-list span {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.tn-single-contact-list a:hover {
  color: var(--tn-accent);
}

/* Related posts */
.tn-single-related-section {
  padding: 0 0 88px;
}

.tn-single-section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.tn-single-section-heading h2 {
  margin: 0;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tn-single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tn-single-related-card {
  overflow: hidden;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tn-single-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tn-shadow-hover);
}

.tn-single-related-image {
  display: block;
  min-height: 210px;
  background: var(--tn-bg);
}

.tn-single-related-image img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.tn-single-related-placeholder {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tn-primary);
}

.tn-single-related-placeholder span {
  color: var(--tn-accent);
  font-family: var(--tn-font-heading);
  font-size: 3rem;
  font-weight: 900;
}

.tn-single-related-body {
  padding: 22px;
}

.tn-single-related-body span {
  display: block;
  margin-bottom: 9px;
  color: var(--tn-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tn-single-related-body h3 {
  margin: 0;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: 1.35rem;
  line-height: 1.25;
}

.tn-single-related-body h3 a {
  color: inherit;
  text-decoration: none;
}

.tn-single-related-body h3 a:hover {
  color: var(--tn-accent-dark);
}

/* Comments */
.tn-single-comments {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--tn-border);
}

/* Responsive */
@media (max-width: 960px) {
  .tn-single-layout,
  .tn-single-related-grid {
    grid-template-columns: 1fr;
  }

  .tn-single-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .tn-single-hero {
    padding: 62px 0;
  }

  .tn-single-content-section {
    padding: 54px 0 64px;
  }

  .tn-single-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tn-single-article,
  .tn-single-widget {
    padding: 22px;
  }

  .tn-single-post-nav {
    grid-template-columns: 1fr;
  }

  .tn-single-next {
    text-align: left;
  }

  .tn-single-meta span:not(:last-child)::after {
    display: none;
  }

  .tn-single-meta {
    gap: 8px 14px;
  }
}

/* Single Post Contact Widget Icons */
.tn-single-contact-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tn-single-contact-heading h3 {
  margin: 0;
}

.tn-single-contact-heading-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 77, 0.16);
  color: var(--tn-accent);
  border: 1px solid rgba(201, 162, 77, 0.28);
  border-radius: 999px;
}

.tn-single-contact-heading-icon svg,
.tn-single-contact-icon svg,
.tn-single-contact-button svg {
  fill: currentColor;
}

.tn-single-contact-heading-icon svg {
  width: 23px;
  height: 23px;
}

.tn-single-contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 22px;
}

.tn-single-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--tn-radius);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

a.tn-single-contact-row:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 162, 77, 0.45);
  transform: translateY(-2px);
  color: var(--tn-white);
}

.tn-single-contact-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 77, 0.14);
  color: var(--tn-accent);
  border-radius: 999px;
}

.tn-single-contact-icon svg {
  width: 18px;
  height: 18px;
}

.tn-single-contact-row strong {
  display: block;
  margin-bottom: 3px;
  color: var(--tn-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tn-single-contact-row em {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tn-single-contact-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 0;
}

.tn-single-contact-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.tn-single-contact-button:hover svg {
  transform: translateX(3px);
}
.button.primary.tn-single-contact-button {
	border-color: var(--tn-white);
}
.button.primary.tn-single-contact-button:hover {
	border-color: unset;
}
/* ========= End single post ========== */

/* =========================================================
   Residential Listings + Single Property
   Uses main brand CSS variables
   ========================================================= */

.tn-residential-products-section,
.tn-property-page {
  background: var(--tn-bg-soft);
  color: var(--tn-text);
  font-family: var(--tn-font-body);
}

.tn-residential-products-container,
.tn-property-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.tn-residential-products-section {
  padding: 86px 0;
}

.tn-residential-products-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.tn-residential-products-heading h2 {
  margin: 0 0 14px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.tn-residential-products-heading p {
  margin: 0;
  color: var(--tn-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Listing cards */
.tn-residential-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tn-residential-card {
  overflow: hidden;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tn-residential-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tn-shadow-hover);
}

.tn-residential-card-image {
  position: relative;
  display: block;
  height: 235px;
  background: var(--tn-bg);
}

.tn-residential-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tn-residential-card-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tn-primary);
}

.tn-residential-card-placeholder span {
  color: var(--tn-accent);
  font-family: var(--tn-font-heading);
  font-size: 4rem;
  font-weight: 900;
}

.tn-residential-status,
.tn-property-status {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  background: var(--tn-white);
  color: var(--tn-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: var(--tn-shadow);
}

.tn-residential-status::before,
.tn-property-status::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  display: inline-block;
  background: #b42318;
  border-radius: 999px;
}

.tn-residential-card-body {
  padding: 24px;
}

.tn-residential-price {
  margin-bottom: 6px;
  color: var(--tn-primary);
  font-size: 1.65rem;
  font-weight: 900;
}

.tn-residential-card h3 {
  margin: 0 0 6px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: 1.35rem;
}

.tn-residential-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tn-residential-address {
  margin: 0 0 16px;
  color: var(--tn-muted);
  line-height: 1.55;
}

.tn-residential-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tn-residential-meta span {
  color: var(--tn-muted);
}

.tn-residential-meta strong {
  color: var(--tn-primary);
  font-size: 1.15rem;
}

.tn-residential-card-link {
  color: var(--tn-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.tn-residential-card-link:hover {
  color: var(--tn-primary);
}

/* Single property gallery */
.tn-property-gallery-section {
  padding: 34px 0 24px;
  background: var(--tn-white);
}

.tn-property-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 10px; */
  overflow: hidden;
  border-radius: var(--tn-radius-lg);
}

.tn-property-main-photo {
  position: relative;
  min-height: 470px;
  background: var(--tn-bg);
}

.tn-property-main-photo img,
.tn-property-side-photos img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tn-property-side-photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tn-property-side-photos > div {
  min-height: 230px;
  background: var(--tn-bg);
}

.tn-property-photo-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 11px 16px;
  background: var(--tn-white);
  color: var(--tn-primary);
  border-radius: var(--tn-radius-sm);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--tn-shadow);
}

/* Single property layout */
.tn-property-main-section {
  padding: 34px 0 86px;
}

.tn-property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.tn-property-content {
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
  padding: clamp(26px, 4vw, 42px);
}

.tn-property-price {
  color: var(--tn-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.tn-property-header h1 {
  margin: 10px 0 6px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tn-property-location {
  margin: 0 0 22px;
  color: var(--tn-muted);
  font-size: 1.05rem;
}

.tn-property-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tn-property-stats div {
  display: grid;
}

.tn-property-stats strong {
  color: var(--tn-primary);
  font-size: 2rem;
  line-height: 1;
}

.tn-property-stats span {
  color: var(--tn-muted);
}

.tn-property-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 38px;
}

.tn-property-facts div {
  padding: 16px;
  background: var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-sm);
}

.tn-property-facts strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tn-primary);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tn-property-facts span {
  color: var(--tn-text);
  font-weight: 700;
}

.tn-property-special,
.tn-property-description,
.tn-property-map {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--tn-border);
}

.tn-property-special h2,
.tn-property-description h2,
.tn-property-map h2 {
  margin: 0 0 18px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.tn-property-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tn-property-feature-tags span {
  padding: 8px 13px;
  background: var(--tn-bg);
  color: var(--tn-primary);
  border-radius: var(--tn-radius-sm);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tn-property-description {
  color: var(--tn-text);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Sidebar */
.tn-property-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.tn-property-agent-card,
.tn-property-contact-card {
  padding: 24px;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
}

.tn-property-agent-card h3,
.tn-property-contact-card h3 {
  margin: 0 0 10px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: 1.55rem;
}

.tn-property-agent-card p {
  margin: 0 0 18px;
  color: var(--tn-muted);
  line-height: 1.6;
}

.tn-property-contact-card {
  display: grid;
  gap: 8px;
}

.tn-property-contact-card a {
  color: var(--tn-primary);
  font-weight: 800;
  text-decoration: none;
}

/* CF7 */
.tn-property-cf7-form,
.tn-cf7-form {
  display: grid;
  gap: 15px;
}

.tn-cf7-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tn-cf7-form label {
  display: grid;
  gap: 7px;
  color: var(--tn-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.tn-cf7-form input,
.tn-cf7-form textarea,
.tn-cf7-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-sm);
  color: var(--tn-text);
  font-family: var(--tn-font-body);
  box-shadow: none;
}
.tn-cf7-form input[type="checkbox"] {
	width:auto;
}
.tn-cf7-consent label {
	font-style:italic;
}

.tn-cf7-form textarea {
  min-height: 105px;
  resize: vertical;
}

.tn-cf7-form input:focus,
.tn-cf7-form textarea:focus,
.tn-cf7-form select:focus {
  border-color: var(--tn-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.18);
  outline: none;
}

.tn-property-agent-card .wpcf7-submit {
  width: 100%;
  min-height: 52px;
  background: var(--tn-primary);
  border-color: var(--tn-primary);
  border-radius: 999px;
  color: var(--tn-white);
  font-weight: 800;
  text-transform: uppercase;
}

.tn-property-agent-card .wpcf7-submit:hover {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2);
}

/* Responsive */
@media (max-width: 960px) {
  .tn-residential-listing-grid,
  .tn-property-layout {
    grid-template-columns: 1fr;
  }

  .tn-property-sidebar {
    position: static;
  }

  .tn-property-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tn-residential-products-section,
  .tn-property-main-section {
    padding: 58px 0;
  }

  .tn-residential-products-container,
  .tn-property-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tn-property-main-photo {
    min-height: 300px;
  }

  .tn-property-side-photos {
    grid-template-columns: 1fr 1fr;
  }

  .tn-property-side-photos > div {
    min-height: 150px;
  }

  .tn-property-facts,
  .tn-cf7-row {
    grid-template-columns: 1fr;
  }

  .tn-residential-products-heading {
    text-align: left;
  }
}


/* =========================================================
   Single Residential Listing Enhancements
   Gallery Lightbox + Sidebar Icons + Map Fix
   ========================================================= */

/* Clickable gallery */
.tn-property-main-photo,
.tn-property-side-photos button {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  height: 100%;
}

.tn-property-main-photo:hover img,
.tn-property-side-photos button:hover img {
  transform: scale(1.03);
}

.tn-property-main-photo img,
.tn-property-side-photos img {
  transition: transform 0.35s ease;
}

.tn-property-side-photos {
  overflow: hidden;
}

.tn-property-side-photos button {
  position: relative;
  /*overflow: hidden;*/
  min-height: 230px;
  background: var(--tn-bg);
  margin: 0px;
    padding: 0px;
    text-transform: none;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    background: none;
    appearance: none;
	
}

.tn-property-photo-count {
  position: absolute !important;
  right: 16px;
  bottom: 16px;
  min-height: auto !important;
  padding: 12px 16px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--tn-white) !important;
  color: var(--tn-primary) !important;
  border-radius: var(--tn-radius-sm);
  font-weight: 900;
  box-shadow: var(--tn-shadow);
  z-index: 5;
}

.tn-property-photo-count-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.tn-property-photo-count-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Lightbox */
.tn-property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.tn-property-lightbox.is-open {
  display: block;
}

.tn-property-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 31, 0.92);
}

.tn-property-lightbox-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 1fr auto;
  align-items: center;
}

.tn-property-lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tn-property-lightbox-image {
  display: none;
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--tn-radius);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.tn-property-lightbox-image.is-active {
  display: block;
}

.tn-property-lightbox-close,
.tn-property-lightbox-arrow {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: var(--tn-white);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tn-property-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  z-index: 4;
}

.tn-property-lightbox-arrow {
  width: 52px;
  height: 52px;
  margin: 0 auto;
}

.tn-property-lightbox-arrow:hover,
.tn-property-lightbox-close:hover {
  background: var(--tn-accent);
  color: var(--tn-primary-2);
}

.tn-property-lightbox-arrow svg,
.tn-property-lightbox-close svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.tn-property-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
}

.tn-property-lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

.tn-property-lightbox-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-weight: 800;
}

body.tn-property-lightbox-open {
  overflow: hidden;
}

/* Sidebar icon upgrades */
.tn-property-sidebar-title {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.tn-property-sidebar-title-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tn-primary);
  color: var(--tn-accent);
  border-radius: 999px;
}

.tn-property-sidebar-title-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.tn-property-sidebar-title h3 {
  margin: 0 0 8px;
}

.tn-property-sidebar-title p {
  margin: 0;
}

.tn-property-sidebar-benefits {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.tn-property-sidebar-benefits > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-sm);
}

.tn-property-sidebar-benefits span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 77, 0.14);
  color: var(--tn-accent-dark);
  border-radius: 999px;
}

.tn-property-sidebar-benefits svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.tn-property-sidebar-benefits strong {
  color: var(--tn-primary);
  font-size: 0.92rem;
  line-height: 1.35;
}

.tn-property-contact-card-icons {
  gap: 12px;
}

.tn-property-contact-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px;
  background: var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-sm);
  color: var(--tn-primary);
  text-decoration: none;
}

.tn-property-contact-row span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tn-primary);
  color: var(--tn-accent);
  border-radius: 999px;
}

.tn-property-contact-row svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.tn-property-contact-row em {
  color: var(--tn-primary);
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

a.tn-property-contact-row:hover {
  border-color: var(--tn-accent);
  box-shadow: var(--tn-shadow);
}

/* Map */
.tn-property-section-title-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tn-property-section-title-icon h2 {
  margin: 0;
}

.tn-property-section-title-icon > span {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tn-primary);
  color: var(--tn-accent);
  border-radius: 999px;
}

.tn-property-section-title-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tn-property-map-frame {
  overflow: hidden;
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
}

.tn-property-map-frame iframe {
  width: 100%;
  display: block;
}

/* Mobile */
@media (max-width: 640px) {
  .tn-property-lightbox-panel {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .tn-property-lightbox-stage {
    height: 76vh;
  }

  .tn-property-lightbox-image {
    max-height: 76vh;
  }

  .tn-property-lightbox-arrow {
    width: 42px;
    height: 42px;
  }

  .tn-property-lightbox-close {
    width: 42px;
    height: 42px;
    top: 14px;
    right: 14px;
  }

  .tn-property-sidebar-title {
    grid-template-columns: 1fr;
  }

  .tn-property-side-photos button {
    min-height: 150px;
  }
}

/* =========================================================
   Property Inquiry Form moved below article
   ========================================================= */

#tn-property-inquiry-form {
  scroll-margin-top: 130px;
}

.tn-property-agent-scroll-button {
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 6px;
}

.tn-property-agent-scroll-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.tn-property-agent-scroll-button:hover svg {
  transform: translateX(3px);
}

.tn-property-inquiry-section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--tn-border);
}

.tn-property-inquiry-section .tn-property-section-title-icon {
  align-items: flex-start;
}

.tn-property-inquiry-section .tn-property-section-title-icon h2 {
  margin: 0 0 8px;
}

.tn-property-inquiry-section .tn-property-section-title-icon p {
  margin: 0;
  color: var(--tn-muted);
  line-height: 1.65;
}

.tn-property-inquiry-card {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.14), transparent 32%),
    var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
}

/* Make the form look better when full-width in article */
.tn-property-inquiry-card .tn-cf7-form {
  display: grid;
  gap: 16px;
}

.tn-property-inquiry-card .wpcf7-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  background: var(--tn-primary);
  border-color: var(--tn-primary);
  border-radius: 999px;
  color: var(--tn-white);
  font-family: var(--tn-font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tn-property-inquiry-card .wpcf7-submit:hover {
  background: var(--tn-accent);
  border-color: var(--tn-accent);
  color: var(--tn-primary-2);
  transform: translateY(-2px);
  box-shadow: var(--tn-shadow-hover);
}

@media (max-width: 640px) {
  #tn-property-inquiry-form {
    scroll-margin-top: 90px;
  }

  .tn-property-inquiry-card {
    padding: 22px;
  }
}

/* ========== End single residential listing ============ */

/* =========================================================
   Legal Pages: Terms of Use + Privacy Policy
   ========================================================= */

.tn-legal-page {
  font-family: var(--tn-font-body);
  color: var(--tn-text);
  background: var(--tn-white);
}

.tn-legal-container {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.tn-legal-hero {
  padding: clamp(72px, 10vw, 120px) 0;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.15), transparent 36%),
    linear-gradient(135deg, var(--tn-primary), var(--tn-primary-2));
}

.tn-legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--tn-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tn-legal-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--tn-accent);
}

.tn-legal-hero h1 {
  margin: 0 0 16px;
  color: var(--tn-white);
  font-family: var(--tn-font-heading);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tn-legal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.tn-legal-hero .tn-legal-updated {
  margin-top: 18px;
  color: var(--tn-accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.tn-legal-content-section {
  padding: clamp(58px, 8vw, 92px) 0;
  background:
    linear-gradient(180deg, var(--tn-white), var(--tn-bg-soft));
}

.tn-legal-content {
  padding: clamp(26px, 5vw, 48px);
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
}

.tn-legal-content h2 {
  margin: 36px 0 12px;
  color: var(--tn-primary);
  font-family: var(--tn-font-heading);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.tn-legal-content h2:first-child {
  margin-top: 0;
}

.tn-legal-content p,
.tn-legal-content li {
  color: var(--tn-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.tn-legal-content p {
  margin: 0 0 14px;
}

.tn-legal-content ul {
  margin: 8px 0 18px 1.2em;
  padding: 0;
}

.tn-legal-content li {
  margin-bottom: 8px;
}

.tn-legal-content a {
  color: var(--tn-primary);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 77, 0.7);
  text-underline-offset: 3px;
}

.tn-legal-contact-card {
  margin-top: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(201, 162, 77, 0.13), transparent 32%),
    var(--tn-bg-soft);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
}

.tn-legal-contact-card p {
  margin: 0 0 8px;
}

.tn-legal-contact-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .tn-legal-container {
    width: min(100% - 24px, 980px);
  }

  .tn-legal-content {
    padding: 24px;
  }

  .tn-legal-content h2 {
    margin-top: 30px;
  }
}
/* ======= End  Tos + Policy ========== */

/* ========= FORCE =========== */
.article-inner h1.entry-title, .tn-single-post-page h1 {
	font-size:revert;
}