/*
This is your custom Style Sheet. It's the last css resource loaded so you can
easily overwrite css selectors from other style sheets.
*/

body,
* {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
}

input,
textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
}

img,
video,
a {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}

a,
img {
  pointer-events: auto !important;
}

.checkout-wrapper {
  max-width: inherit;
}

.checkout-wrapper .confirm-payment {
  width: auto;
  margin: 0 auto;
  min-width: 220px;
}

.custom-checkout-page .row {
  display: flex;
  flex-flow: row nowrap;
  gap: 32px;
  margin: 0;
}

.empty-state-dashboard-plan {
  gap: 32px;
  padding: 0 0 32px 0;
}

.custom-checkout-page .row .column,
.empty-state-dashboard-plan .no-plan-left,
.empty-state-dashboard-plan .no-plan-right {
  display: flex;
  width: calc(50% - 16px);
  flex-direction: column;
}

.empty-state-dashboard-plan .no-plan-left,
.empty-state-dashboard-plan .no-plan-right {
  text-align: left;
}

.empty-state-dashboard-plan p {
  margin-bottom: 1rem;
}

.category-box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.4s ease;
}

.custom-advertise-checkout {
  background: white;
  padding: 4em;
  position: relative;
  margin-left: 4em;
}

.custom-advertise-checkout img.fixed {
  position: absolute;
  left: -15em;
  top: -6em;
}

.tref-lp .hero-content {
  padding: 3rem 0;
  position: relative;
}

.tref-lp .hero-content:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #e9eeff;
}

.banner[type='leaderboard'] .banner-link {
  width: 100%;
}

.thin-strip-base[data-bg='neutral']#thin-strip-search {
  background: var(--neutral-transp-5);
}

.pricing-plans[data-type='cards']
  .pricing-plan-card-wrapper
  .pricing-plan-card
  .pricing-plan-card-body
  > .card-content-item:first-child
  .card-content-item-header
  + .show {
  display: block !important;
}

.custom-advertise-checkout h3 {
  font-size: 1.6em;
}

.custom-content.ckeditor-content .ad-container .ad-button,
.custom-content.ckeditor-content .ad-container .ad-button:hover {
  color: white;
}

.tref-lp .category-card-icon,
.tref-lp .category-card .category-card-icon img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

.tref-lp .category-card {
  justify-content: center;
}

.button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-img {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
  border-radius: 12px;
  display: block;
  max-width: 100%;
  margin: 20px auto;
}

.category-img:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
}

.tref-lp .category-card:hover {
  text-decoration: none;
}

@media screen and (min-width: 992px) {
  .banner[type='large-mobile']:not([data-section='sidebar']) .banner-link {
    max-width: 320px;
    min-width: 320px;
  }
}

@media screen and (min-width: 768px) {
  .banner[type='large-mobile'][data-count='3'] .container {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .custom-checkout-page .row,
  .empty-state-dashboard-plan {
    flex-flow: column wrap;
  }

  .custom-checkout-page .row .column,
  .empty-state-dashboard-plan .no-plan-left,
  .empty-state-dashboard-plan .no-plan-right {
    width: 100%;
  }

  .custom-advertise-checkout {
    margin-left: 0;
  }

  .custom-advertise-checkout img.fixed {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu {
    display: block;
  }
}

/* Redesign - Custom, Aug 12 */
.custom-content h1,
.custom-content h2,
.custom-content h3,
.custom-content h4,
.custom-content h5,
.custom-content h6,
body,
.paragraph,
.heading,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
span,
.custom-content.ckeditor-content,
button,
.custom-content p,
.custom-content span,
.widget-section-header .subtitle,
.widget-section-header .title {
  font-family: 'Inter', sans-serif;
}

.header > .header-content .header-logo.larger-h,
.header > .header-content .header-logo {
  height: 80px;
  padding: 0.5rem 0;
}

.footer > .footer-bar {
  background: var(--brand-base);
  padding: 2rem 0;
  font-size: 0.75rem;
}

.footer > .footer-content .wrapper .footer-item .footer-item-title {
  font-size: 0.875rem;
}

.footer > .footer-content .footer-item .footer-item-content {
  margin-top: 24px;
  font-size: 0.875rem;
}

.footer
  > .footer-content
  .wrapper
  .footer-item
  .footer-item-content
  .footer-info
  .fa-map-marker {
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="white" d="M12 3a7 7 0 0 0-7 7c0 2.862 1.782 5.623 3.738 7.762A26.158 26.158 0 0 0 12 20.758a26.14 26.14 0 0 0 3.262-2.994C17.218 15.623 19 12.863 19 10a7 7 0 0 0-7-7Zm0 20.214l-.567-.39l-.003-.002l-.006-.005l-.02-.014l-.075-.053a25.34 25.34 0 0 1-1.214-.94a28.157 28.157 0 0 1-2.853-2.698C5.218 16.876 3 13.637 3 10a9 9 0 0 1 18 0c0 3.637-2.218 6.877-4.262 9.112a28.145 28.145 0 0 1-3.796 3.44a16.794 16.794 0 0 1-.345.251l-.021.014l-.006.005l-.002.001l-.568.39ZM12 8a2 2 0 1 0 0 4a2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0a4 4 0 0 1-8 0Z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  font-size: 0;
}

.footer
  > .footer-content
  .footer-item[data-content='apps-content']
  .link-store {
  border: none;
}

.section-headers .wrapper .heading,
.section-headers .wrapper .paragraph {
  font-weight: 700;
}

.categories-base .categories-header,
.cards-default .cards-header {
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.categories-base .categories-header > .heading,
.cards-default .cards-header > .heading {
  font-size: 2.5rem;
  font-weight: 700;
}

.results-header {
  border: none;
  padding: 2rem 0;
}

.results-body {
  padding-top: 3rem;
  pdding-bottom: 3rem;
  background: #f9fafb;
}

.results-body .results-content .results-actions {
  border: none;
}

.results-body .results-sidebar .sidebar-item,
.results-body .results-sidebar .sidebar-item .item-body {
  border-color: #e4e4e7;
}

.summary-list .summary-card {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.header .header-navbar .navbar-link.plugin-dropdown-menu {
  font-size: 0.875rem;
}

.footer
  > .footer-content
  .wrapper
  .footer-item
  .footer-item-content
  .link-footer:hover {
  color: white;
}

.categories-base:not([data-bg='brand']) .categories-header > .heading,
.cards-default:not([data-bg='brand']) .cards-header > .heading {
  color: var(--neutral-base);
}

.categories-base .categories-content > .categories-list .categories-item {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border-radius: 0.5rem;
}

.categories-base:not([data-bg='brand'])
  .categories-content
  > .categories-list
  .categories-item {
  background: white;
}

.categories-base .categories-content > .categories-list .info .title {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
}

.categories-base[data-type='1'] .categories-content > .categories-list .info {
  margin: 0;
  padding: 1.5rem;
}

.categories-base
  .categories-content
  > .categories-list
  .categories-item
  .picture {
  background: #f3f4f6;
  border-radius: 0.5rem 0.5rem 0 0;
}

.results-header .results-title {
  font-weight: 700;
  line-height: 1.5;
}

.summary-list .summary-card .summary-title,
.summary-list .summary-card .summary-categories,
.summary-list .summary-card .summary-info,
.summary-list .summary-card .summary-phone,
.summary-list .summary-card .summary-address {
  font-family: 'Inter', sans-serif;
}

.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-address
  .summary-address-icon,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-info
  .summary-info-item
  .summary-info-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-body
  .results-content
  .summary-list[list-type='grid-view']
  .summary-card
  .summary-content
  .summary-address
  .summary-address-icon,
.results-body
  .results-content
  .summary-list[list-type='grid-view']
  .summary-card
  .summary-info
  .summary-info-item
  .summary-info-icon {
  margin: 0 auto;
}

.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-address
  .fa,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info
  .fa,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info-item
  .fa {
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  font-size: 0;
  position: relative;
  opacity: 0.5;
}

.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-address
  .fa-map-marker,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info
  .fa-map-marker,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info-item
  .fa-map-marker {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path fill='currentColor' d='M12 3a7 7 0 0 0-7 7c0 2.862 1.782 5.623 3.738 7.762A26.158 26.158 0 0 0 12 20.758a26.14 26.14 0 0 0 3.262-2.994C17.218 15.623 19 12.863 19 10a7 7 0 0 0-7-7Zm0 20.214l-.567-.39l-.003-.002l-.006-.005l-.02-.014l-.075-.053a25.34 25.34 0 0 1-1.214-.94a28.157 28.157 0 0 1-2.853-2.698C5.218 16.876 3 13.637 3 10a9 9 0 0 1 18 0c0 3.637-2.218 6.877-4.262 9.112a28.145 28.145 0 0 1-3.796 3.44a16.794 16.794 0 0 1-.345.251l-.021.014l-.006.005l-.002.001l-.568.39ZM12 8a2 2 0 1 0 0 4a2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0a4 4 0 0 1-8 0Z'/></svg>");
}

.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-address
  .fa-phone,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info
  .fa-phone,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info-item
  .fa-phone {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3e%3cpath fill='currentColor' d='M19.44 13c-.22 0-.45-.07-.67-.12a9.44 9.44 0 0 1-1.31-.39a2 2 0 0 0-2.48 1l-.22.45a12.18 12.18 0 0 1-2.66-2a12.18 12.18 0 0 1-2-2.66l.42-.28a2 2 0 0 0 1-2.48a10.33 10.33 0 0 1-.39-1.31c-.05-.22-.09-.45-.12-.68a3 3 0 0 0-3-2.49h-3a3 3 0 0 0-3 3.41a19 19 0 0 0 16.52 16.46h.38a3 3 0 0 0 2-.76a3 3 0 0 0 1-2.25v-3a3 3 0 0 0-2.47-2.9Zm.5 6a1 1 0 0 1-.34.75a1.05 1.05 0 0 1-.82.25A17 17 0 0 1 4.07 5.22a1.09 1.09 0 0 1 .25-.82a1 1 0 0 1 .75-.34h3a1 1 0 0 1 1 .79q.06.41.15.81a11.12 11.12 0 0 0 .46 1.55l-1.4.65a1 1 0 0 0-.49 1.33a14.49 14.49 0 0 0 7 7a1 1 0 0 0 .76 0a1 1 0 0 0 .57-.52l.62-1.4a13.69 13.69 0 0 0 1.58.46q.4.09.81.15a1 1 0 0 1 .79 1Z'/%3e%3c/svg%3e");
}

.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-address
  .fa-envelope-o,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info
  .fa-envelope-o,
.results-body
  .results-content
  .summary-list
  .summary-card
  .summary-content
  .summary-info-item
  .fa-envelope-o {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75'/%3E%3C/svg%3E");
}

.hero-default[data-type='4'] .content-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-list .summary-card:hover {
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@media screen and (min-width: 768px) {
  .hero-default .wrapper > .hero-header .heading {
    font-size: 3rem;
    font-weight: 700;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.order-info .order-info-link,
.order-info .order-info-header .payment-recurrence-options .payment-recurrence,
.order-info .promo-code .input-promo-code .btn-apply,
.order-info .order-info-line .title,
.order-info .order-info-line .value,
.checkout-wrapper
  .payment-options
  .payment-options-section
  .payment-methods-list
  .payment-method {
  font-family: 'Inter', sans-serif;
}

.header {
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.05);
  z-index: 100;
}

.custom-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 70%;
  margin: 0 auto;
}

.custom-cards {
  max-width: 70%;
  margin: 0 auto;
}

.custom-cards .content-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.custom-cards .content-card {
  border: 1px solid var(--neutral-transp-10);
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.custom-claim {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--neutral-transp-10);
  padding: 2rem 0 0;
  max-width: 70%;
  margin: 0 auto;
}

.claim-signup-breadcrumb {
  gap: 4rem;
  flex-flow: row wrap;
  min-height: 4rem;
  margin: 2rem 0;
}

.members-page {
  padding: 3rem 0;
}

.members-page .members-wrapper .members-sidebar .members-cards .members-item {
  overflow: hidden;
}

.checkout-wrapper.custom-checkout-wrapper .custom-checkout-page,
.custom-checkout-page .row {
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.custom-checkout-page .row .column,
.empty-state-dashboard-plan .no-plan-left,
.empty-state-dashboard-plan .no-plan-right {
  width: 100%;
}

.custom-checkout-page .row .column {
  gap: 2rem;
}

.order-info,
.payment-options {
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--neutral-transp-10);
}

.custom-claim-page .steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.custom-claim-page .step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 384px;
  margin: 0 auto;
  gap: 1rem;
}

.custom-claim-page .step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--step-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.custom-claim-page .step-number-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-claim-page .how-to-claim {
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.custom-claim-page .how-to-claim:before {
  content: '';
  background: var(--brand-base);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 0.5rem;
  opacity: 0.05;
}

.custom-claim-page .section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.custom-claim-page .steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-claim-page .steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.custom-claim-page .need-help {
  text-align: center;
  max-width: 512px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.checkout-wrapper,
.section-headers + [data-trans='Identification form'] .claim-signup-breadcrumb {
  margin-top: 0;
}

div#listing-extra-fields .panel-form {
  margin-bottom: 2rem;
}

.custom-hero .heading {
  font-weight: bold;
}

.custom-hero .button {
  margin-top: 2rem;
}

.custom-hero .button:hover {
  color: white;
}

.custom-cards .content-card h3 {
  font-weight: bold;
}

.custom-cards .content-card.why-tref {
  background: var(--brand-base);
}

.custom-cards .content-card.why-tref h3,
.custom-cards .content-card.why-tref p {
  color: white;
}

.header:not([data-type='3']):not([data-type='4'])[is-inverse='true']
  + .section-headers[data-bg='base'] {
  padding-top: 48px;
}

.modal-sign[is-page='true'] .modal-content {
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-radius: 0.5rem;
  border-color: var(--neutral-transp-10);
}

.claim-signup-breadcrumb .breadcrumb-item {
  background: none;
  color: var(--neutral-transp-50);
  padding: 0;
  padding-left: 50px;
}

.claim-signup-breadcrumb .breadcrumb-item[is-active='true'] {
  background: none;
  color: var(--brand-base);
}

.claim-signup-breadcrumb .breadcrumb-item strong,
.claim-signup-breadcrumb .breadcrumb-item:after {
  display: none;
}

.claim-signup-breadcrumb .breadcrumb-item:before,
.claim-signup-breadcrumb .breadcrumb-item:not(:first-child):before {
  content: '';
  background: url(/custom/domain_1/image_files/ckeditor/sitemgr_tref-icon.png)
    no-repeat center;
  background-size: 18px;
  position: absolute;
  left: 0;
  top: 50%;
  height: 40px;
  width: 40px;
  transform: translateY(-50%);
  border: 3px solid var(--neutral-transp-10);
  border-radius: 50%;
}

.claim-signup-breadcrumb .breadcrumb-item[is-active='true']:before,
.claim-signup-breadcrumb
  .breadcrumb-item[is-active='true']:not(:first-child):before {
  border-color: var(--brand-base);
}

.checkout-wrapper
  .payment-options
  .payment-options-section
  div#paypal-payment
  p {
  font-size: 0.875rem;
}

.checkout-wrapper .confirm-payment .fa {
  font-size: 1rem;
  margin-right: 1rem;
}

.pricing-plans[data-type='cards-single'] .pricing-header h2 {
  font-weight: bold;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .content-block-title {
  margin-bottom: 0.5rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .content-block-title
  h3 {
  font-size: 1.5rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .description {
  font-size: 1rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group
  .main-price
  .value {
  font-size: 1.75rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-body
  .details-list
  li {
  font-size: 0.875rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-body
  .details-list
  li:before {
  color: white;
  background: var(--highlight-base, #137df7);
  border-radius: 50%;
  height: 18px;
  width: 18px;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-claim-page .step-number-text {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
}

.custom-claim-page .step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.custom-claim-page .step-description {
  line-height: 1.6;
}

.custom-claim-page .section-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-base);
  margin: 0;
}

.custom-claim-page .email-link {
  color: var(--brand-base);
  text-decoration: none;
  font-weight: 500;
}

.custom-claim-page .email-link:hover {
  text-decoration: underline;
}

.custom-claim-page .icon-check::before {
  content: '?';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--brand-base);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 16px;
  font-weight: bold;
}

.custom-claim-page .icon-mail::before {
  content: '?';
  display: inline-block;
  font-size: 24px;
  line-height: 1;
}

.custom-claim-page .how-to-claim .section-header {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.custom-claim-page .step-text {
  margin: 0;
}

.summary-list .summary-card:hover {
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@media (max-width: 992px) {
  .custom-cards,
  .custom-hero {
    max-width: 100%;
  }

  .header:not([data-type='3']):not([data-type='4'])[is-inverse='true']
    + .section-headers[data-bg='base'] {
    padding-top: 24px;
  }
}

@media (min-width: 992px) {
  .custom-checkout-page .row .column {
    flex-flow: row nowrap;
  }
}

@media (min-width: 768px) {
  .custom-claim-page .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-plans[data-type='cards-single']
  + .pricing-plans[data-type='cards-single']
  .pricing-header {
  display: none;
}

.pricing-plans[data-type='cards-single']
  + .pricing-plans[data-type='cards-single']
  .pricing-plan-card {
  margin-top: 0;
}

.pricing-plans[data-type='cards-single'] .pricing-plan-card {
  border-radius: 1rem;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
  overflow: hidden;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group
  .button {
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 32px;
  padding-right: 32px;
  border-radius: var(--border-radius-button, 3px);
  font-size: 1em;
}

button.desc-fetch-google {
  line-height: 1.15;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  padding: 8px 24px;
  border-radius: var(--border-radius-button, 3px);
  font-size: 0.875em;
  background: var(--brand-base);
  color: white;
  margin: 1rem 0;
}

p.desc-fetch-google {
  font-size: 0.875rem;
}

.modal-sign .modal-content .modal-nav {
  border-color: var(--neutral-transp-10);
}

.tref-lp .location-btn {
  white-space: nowrap;
  padding: 1.25rem 2rem 1.25rem 1rem;
}

.tref-lp .search-section,
.tref-lp .search-input-container .twitter-typeahead,
.tref-lp .location-search-container .twitter-typeahead {
  width: 100%;
}

@media (min-width: 640px) {
  .tref-lp .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.tref-lp .tt-menu {
  margin-top: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(8, 92, 240, 0.2);
  max-height: 20rem;
  overflow-y: auto;
  z-index: 50;
  backdrop-filter: blur(8px);
  width: 100%;
  padding: 1rem;
  text-align: left;
}

.tref-lp .tt-dataset.tt-dataset-what,
.tref-lp .tt-dataset.tt-dataset-whereNew {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tref-lp .tt-suggestion.tt-selectable {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1a1a1a;
  font-weight: 500;
  flex-direction: row-reverse;
  justify-content: space-between;
  font-size: 0.85rem;
}

.tref-lp .tt-suggestion.tt-selectable:hover {
  background: rgba(233, 238, 255, 0.5);
  color: #085cf0;
  transform: scale(1.02);
}

.tref-lp .area-label::before {
  display: none;
}

.tref-lp .apply-location-btn {
  font-size: 0.875rem;
  font-weight: 500;
}

.tref-lp .tt-dataset.tt-dataset-whereNew .tt-suggestion.tt-selectable {
  display: block;
}

.tref-lp .location-icon {
  color: var(--highlight-base);
  min-width: 24px;
}

.tref-lp .location-btn {
  width: 18rem;
  max-width: 100%;
  min-width: inherit;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-description {
  font-family: 'Inter', sans-serif;
}

.summary-list .summary-card[summary-type='9'] .summary-address {
  color: var(--neutral-base);
  position: relative;
  display: block;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.summary-list
  .summary-card[summary-type='9']
  .summary-address
  .summary-distance {
  font-size: 0.75rem;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info-item
  .summary-info-icon {
  height: 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-footer
  .summary-info,
.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-footer
  .summary-info-item {
  display: none;
}

.summary-list .summary-card[summary-type='9'] .summary-address:before {
  content: '';
  height: 20px;
  width: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M12 3a7 7 0 0 0-7 7c0 2.862 1.782 5.623 3.738 7.762A26.158 26.158 0 0 0 12 20.758a26.14 26.14 0 0 0 3.262-2.994C17.218 15.623 19 12.863 19 10a7 7 0 0 0-7-7Zm0 20.214l-.567-.39l-.003-.002l-.006-.005l-.02-.014l-.075-.053a25.34 25.34 0 0 1-1.214-.94a28.157 28.157 0 0 1-2.853-2.698C5.218 16.876 3 13.637 3 10a9 9 0 0 1 18 0c0 3.637-2.218 6.877-4.262 9.112a28.145 28.145 0 0 1-3.796 3.44a16.794 16.794 0 0 1-.345.251l-.021.014l-.006.005l-.002.001l-.568.39ZM12 8a2 2 0 1 0 0 4a2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0a4 4 0 0 1-8 0Z"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  position: absolute;
  left: 0;
  top: 0.25rem;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-picture
  .summary-picture {
  padding: 0;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-address {
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tref-lp .toast {
  display: none;
}

@media (max-width: 580px) {
  .tref-lp .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tref-lp .location-btn {
    width: 100%;
  }

  .tref-lp .search-placeholder {
    text-align: left;
  }

  .header[has-translatebar='true'][data-type='1']
    .header-bar
    .container
    .translate {
    margin: 0;
  }
}

.footer[data-type='3'] > .footer-content {
  display: none;
}

.thin-strip-base[data-type='6'] .wrapper > .content-stores .link-store {
  border: none;
}

.summary-list[list-type='grid-view'] .summary-card[summary-type='9'] {
  flex-flow: row wrap;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-picture
  .summary-picture-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-picture
  .summary-picture-content
  img {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-picture
  .summary-title {
  margin: 0;
  font-size: 1rem;
  text-align: left;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .review-stars {
  font-size: 0.875rem;
  text-align: left;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-phone,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-phone
  a,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info-item,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-address {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 0.5rem;
  font-size: 12px;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info
  .summary-info-icon,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info-item
  .summary-info-icon,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-address
  .summary-info-icon,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-phone
  .icon,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-address:before {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  width: 20px;
  min-width: 20px;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-address {
  flex-flow: row nowrap;
  align-items: flex-start;
  text-align: left;
  margin: 0;
  display: block;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info
  .summary-info {
  gap: 0;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info
  .summary-info-item {
  font-size: 12px;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-footer {
  padding-top: 0.5rem;
  width: 100%;
  text-align: left;
}

.tref-lp-thin .hero-content {
  padding: 1.5rem 0;
}

.tref-lp-thin .hero-content:before {
  background: white;
}

.tref-lp-thin .hero-content .content-container {
  background: none;
  padding: 0;
  box-shadow: none;
}

.tref-lp-thin .hero-content .content-container .search-section {
  margin: 0;
  flex-flow: row wrap;
  justify-content: center;
}

.tref-lp-thin
  .hero-content
  .content-container
  .search-section
  .search-input-container
  input#searchInput,
.tref-lp-thin .hero-content .content-container .search-section .location-btn {
  background: #f3f4f6;
  border-radius: 0.5rem;
}

.tref-lp-thin .hero-content .content-container .search-section .location-btn {
  box-shadow: none;
  border: none;
  color: var(--highlight-base);
  font-weight: 500;
  font-size: 1.15rem;
}

.tref-lp-thin
  .hero-content
  .content-container
  .search-section
  .location-btn
  div#locationText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-list .summary-card[summary-type='9'] .summary-picture img,
.summary-list .summary-card[summary-type='9'] .summary-picture picture {
  border-radius: 0.5rem;
  height: auto;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-picture
  .summary-picture-content
  img,
.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-picture
  picture {
  border-radius: 0.25rem;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-picture
  .summary-picture-content
  img {
  width: 8rem;
  min-width: 100%;
  height: auto;
  object-fit: contain;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-picture {
  justify-content: flex-start;
}

.summary-list[list-type='list-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-heading {
  margin-bottom: 0;
}

.tref-lp .location-btn [data-url] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tref-lp .search-icon {
  color: var(--highlight-base);
}

.my-custom-share-buttons {
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px solid #ddd;
}

.sharethis-inline-share-buttons .st-btn {
  border-radius: 6px !important;
  padding: 8px 12px !important;
}

.my-custom-share-buttons .st-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
  transition: 0.2s ease;
}

.modal.modal-member.bundling-options
  .modal-content
  .modal-body
  .listing-templates-list
  .listing-templates-item {
  padding: 0 2rem 0 1rem;
  text-align: left;
  justify-content: flex-start;
}

/* Detail Page Redesign */
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .widget-separator {
  display: none;
}

.details-default > .details-header[data-type='profile-header'].contained .bg {
  margin: 32px 0 0;
}

.custom-content.ckeditor-content {
  padding: 0;
}

.details-default > .details-header {
  background-color: var(--neutral-base);
}

.details-default
  > .details-header
  .details-general
  .details-info
  .details-categories
  .link {
  color: white;
}

.details-default,
.details-default > .details-header[data-type='profile-header']:before,
.details-default
  > .details-header[data-type='profile-header']
  .details-header-navbar {
  background: #f9fafb;
}

.details-default > .detail-body .detail-body-content .tab-content .tab-item {
  margin: 0;
  margin-bottom: 32px;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item
  .tab-item-heading {
  margin-bottom: 1rem;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item
  .tab-item-heading
  .heading {
  font-size: 1.15rem;
  color: var(--neutral-base);
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-reviews
  .tab-item-heading
  .heading,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-hours
  .tab-item-heading
  .heading,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-photos
  .tab-item-heading
  .heading {
  font-size: 0;
  position: relative;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-about
  .ckeditor-content {
  position: relative;
  margin: 2.5rem 0 0;
  color: var(--color-base);
  background: white;
  border: 1px solid #e7eaef;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-hours
  .tab-item-heading
  .heading:before,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-photos
  .tab-item-heading
  .heading:before,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-reviews
  .tab-item-heading
  .heading:before,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-about
  .ckeditor-content:before {
  font-size: 1.15rem;
  color: var(--neutral-base);
  font-weight: 700;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-hours
  .tab-item-heading
  .heading:before {
  content: 'Operating Hours';
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-photos
  .tab-item-heading
  .heading:before {
  content: 'Photo Gallery';
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-reviews
  .tab-item-heading
  .heading:before {
  content: 'Customer Reviews';
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-about
  .ckeditor-content:before {
  content: 'Overview';
  display: block;
  position: absolute;
  top: -2.5rem;
  left: 0;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-contact-us,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-hours,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-location,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-social,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-check-list
  .tab-item-content {
  background: white;
  border: 1px solid #e7eaef;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  margin: 0;
  margin-bottom: 24px;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-features
  .item-features {
  margin: 0;
  color: var(--color-base);
  background: white;
  border: 1px solid #e7eaef;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  gap: 0.5rem;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-about
  .ckeditor-content:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-contact-us:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-hours:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-location:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-social:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item.tab-item-check-list
  .tab-item-content:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-features
  .item-features:hover,
.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-list
  .reviews-item:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(0);
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-features
  .tab-item-content {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-features
  .item-features
  .icon {
  background: var(--highlight-transp-10);
  height: 42px;
  width: 42px;
  border-radius: 0.5rem;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-photos
  .photos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-photos
  .photos-list
  .photos-item {
  width: 100%;
  max-height: 150px;
  border-radius: 1rem;
  margin: 0;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content[data-cy='Overview']
  .tab-item-photos
  .photos-list
  .photos-item {
  display: none;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content[data-cy='Overview']
  .tab-item-photos
  .photos-list
  .photos-item:nth-child(-n + 6) {
  display: block;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-hours
  .hours-content
  .hours-more {
  display: flex;
  gap: 0.5rem;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-hours
  .hours-heading
  .fa-angle-down {
  color: inherit;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-hours
  .hours-content
  .hours-more
  .hours-item {
  margin: 0;
  border-bottom: 1px solid #e7eaef;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  justify-content: space-between;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-hours
  .hours-content
  .hours-more
  .hours-item:last-child {
  border: none;
  padding: 0;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-hours
  .hours-heading {
  font-size: 0.75rem;
  background: #f7f7f7;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
}

/*
.details-default>.detail-body .detail-body-content .tab-content .tab-item-reviews .reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
} */

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-list
  .reviews-item {
  margin: 0;
  color: var(--color-base);
  background: white;
  border: 1px solid #e7eaef;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  gap: 0.5rem;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-list
  .reviews-item
  .review-content
  .review-description {
  font-size: 0.875rem;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-list
  .reviews-item
  .review-content
  .review-helpfull {
  display: none;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-header
  .details-reviews
  .reviews-stars {
  flex-flow: row nowrap;
  gap: 0.25rem;
  margin-left: 1rem;
}

.custom-content.ckeditor-content {
  padding: 0;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-location
  .location-address {
  font-size: 0.75rem;
  padding-left: 5rem;
  text-align: right;
  position: relative;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-location
  .location-address:before {
  content: 'Address';
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .details-default
    > .detail-body
    .detail-body-content
    .tab-content
    .tab-item-features
    .tab-item-content {
    grid-template-columns: 1fr;
  }
}

.custom-details-header header {
  background-color: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 1.5rem 0;
  position: relative;
}

.custom-details-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-details-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-details-header .logo img {
  width: auto;
  height: 90px;
}

.custom-details-header .logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-details-header .logo-text h1 .details-share {
  display: flex;
  align-items: center;
}

.custom-details-header .logo-text [data-tooltip]:before {
  font-size: 0.75rem;
  font-weight: normal;
}

.custom-details-header .logo-text .details-categories {
  font-size: 0.875rem;
}

.custom-details-header .details-claim {
  font-size: 0;
}

.custom-details-header .details-claim .icon {
  display: none;
}

.custom-details-header .details-claim .link {
  background-color: var(--highlight-base);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  transition: 0.2s ease-in-out;
}

.custom-details-header .details-claim .link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-details-header .menu-toggle {
  display: none;
  background: var(--highlight-transp-50);
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: white;
}

.custom-details-header .mobile-menu {
  display: none;
  margin-top: 1rem;
}

.custom-details-header .mobile-menu.active {
  display: block;
}

.custom-details-header .mobile-menu-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.custom-details-header .mobile-menu-btn:hover {
  background-color: #f3f4f6;
}

.custom-details-header .mobile-menu-btn.active {
  background-color: #0080ff;
  color: white;
}

.custom-details-header .hero {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  color: white;
  padding: 4rem 0;
  min-height: 32rem;
  position: relative;
}

.custom-details-header .hero:before {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.custom-details-header .hero-content {
  max-width: 42rem;
  position: relative;
}

.custom-details-header .hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.custom-details-header .rating .details-reviews {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-flow: row nowrap;
}

.custom-details-header .rating .details-reviews .reviews-stars {
  order: 1;
  color: var(--warning-base);
}

.custom-details-header .rating .details-reviews .reviews-rating {
  order: 2;
}

.custom-details-header .rating .details-reviews .reviews-count {
  order: 3;
  color: white;
  opacity: 0.75;
}

.custom-details-header .rating .details-reviews .reviews-count a {
  color: white;
}

.custom-details-header .rating .details-reviews .reviews-count:before {
  content: '(';
}

.custom-details-header .rating .details-reviews .reviews-count:after {
  content: ')';
}

.custom-details-header .hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.custom-details-header .hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.custom-details-header .hero-buttons .details-claim .link {
  padding: 16px 32px;
  display: flex;
  font-weight: normal;
  transition: 0.2s ease-in-out;
  text-align: center;
  justify-content: center;
}

.custom-details-header .hero-buttons .details-claim .link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-details-header .hero-buttons .is-outline {
  border-color: white;
  color: white;
  text-align: center;
}

.custom-details-header .btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.custom-details-header .contact-section {
  background-color: #f9f9f9;
  padding: 3rem 0 0;
}

.custom-details-header .contact-box {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: -7rem;
  position: relative;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out;
}

.custom-details-header .contact-box:hover {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  opacity: 1;
  transform: translateY(0);
}

.custom-details-header .contact-box .button {
  width: 100%;
  text-align: center;
}

.custom-details-header .contact-box .button:hover {
  transform: scale(1.05);
}

.custom-details-header .contact-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-base);
}

.custom-details-header .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.custom-details-header .contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.custom-details-header .contact-icon {
  background-color: var(--highlight-transp-10);
  padding: 0.75rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.custom-details-header .contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--highlight-base);
}

.custom-details-header .contact-info p:first-child {
  font-size: 0.875rem;
  color: var(--color-black-transp-75);
  margin-bottom: 0.25rem;
}

.custom-details-header .contact-info a,
.custom-details-header .contact-info p:last-child {
  font-weight: 500;
  color: var(--color-base);
  text-decoration: none;
}

.custom-details-header .contact-info a:hover {
  color: var(--highlight-base);
}

.custom-details-header .details-header-navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  border-bottom: 1px solid var(--color-black-transp-5);
}

.custom-details-header .tab-navbar {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-black-transp-75);
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.custom-details-header .tab-navbar:hover {
  color: var(--color-black);
  text-decoration: none;
}

.custom-details-header .tab-navbar.is-selected {
  color: var(--highlight-base);
}

.custom-details-header .tab-navbar.is-selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--highlight-base);
}

.custom-details-header .tab-nav-mobile {
  display: none;
}

.custom-details-header .tab-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.custom-details-header .tab-mobile-header span {
  font-weight: 600;
  color: #1a1a1a;
}

.custom-details-header .tab-mobile-menu {
  display: none;
  padding: 1rem 0;
}

.custom-details-header .tab-mobile-menu.active {
  display: block;
}

.custom-details-header .tab-mobile-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 0.5rem;
  display: block;
}

.custom-details-header .tab-mobile-btn:hover {
  background-color: #f3f4f6;
}

.custom-details-header .tab-mobile-btn.active {
  background-color: #0080ff;
  color: white;
}

.custom-details-header .tab-content {
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .custom-details-header .contact-box {
    margin-top: -6rem;
  }

  .custom-details-header .hero h2 {
    font-size: 2rem;
  }

  .custom-details-header .hero p {
    font-size: 1rem;
  }

  .custom-details-header .details-header-navbar,
  .custom-details-header .header-content .details-claim .link {
    display: none;
  }

  .custom-details-header .tab-nav-mobile,
  .custom-details-header .menu-toggle {
    display: block;
  }

  .custom-details-header .header-content .tab-mobile-menu .details-claim .link {
    display: block;
    text-align: center;
  }

  .custom-details-header .hero-buttons {
    flex-direction: column;
  }

  .custom-details-header .header-content {
    flex-direction: row;
    align-items: center;
  }

  .custom-details-header .tab-mobile-header {
    border: none;
    padding: 0;
  }

  .custom-details-header .hero {
    padding: 3rem 1rem 8rem;
  }

  .custom-details-header .logo img {
    width: 60px;
    height: 60px;
  }

  .custom-details-header .logo-text h1 {
    font-size: 1rem;
  }

  .custom-details-header .menu-toggle {
    padding: 0.75rem 1rem;
  }

  .custom-details-header .tab-nav-mobile .container {
    padding: 0;
  }
}

.details-default.details-listing
  > .detail-body
  .detail-body-content
  .tab-content.is-active[data-cy='Website']
  .tab-right {
  display: none;
}

.details-default.details-listing
  > .detail-body
  .detail-body-content
  .tab-content.is-active[data-cy='Website']
  .tab-left {
  width: 100%;
}

.custom-details-header .tab-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.custom-details-header .tab-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
  top: 0;
}

.custom-details-header .tab-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  padding: 2rem 1.5rem;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.25);

  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

  z-index: 9999;
  overflow-y: auto;
}

.custom-details-header .tab-mobile-menu.open {
  transform: translateX(0);
  display: block;
}

.custom-details-header .tab-mobile-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-base);
  cursor: pointer;
  display: block;
  margin-left: auto;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group:has(.button[onclick='checkout(10)'])
  .button {
  display: none !important;
}

.tref-lp .category-grid {
  max-width: 54rem;
}

@media (min-width: 640px) {
  .tref-lp .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .custom-details-header .logo-text .details-categories {
    display: none;
  }
}

.custom-details-header .logo-text h1,
.custom-details-header .hero h2,
.custom-details-header .contact-info a {
  word-break: break-word;
  overflow-wrap: break-word;
}

.claim-steps .claim-wrapper .claim-steps-list .step-content img {
  max-width: 100%;
  height: 250px;
}

/** Redesign ******************************************************************************************************/
.container {
  max-width: 86rem;
  padding: 0 3rem;
}

.header-content .container,
.footer-bar .container {
  max-width: inherit;
}

.pricing-plans {
  background: none;
  position: relative;
  padding: 3rem 0;
}

.pricing-plans:before {
  background: #f5f5ff;
  background: var(--highlight-base);
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  opacity: 0.035;
}

.header > .header-content .header-logo.larger-h,
.header > .header-content .header-logo {
  height: 44px;
  padding: 0;
  margin: 1rem 0;
  animation-duration: 0.2s;
  transition-duration: 0.2s;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
}

.header > .header-content .header-logo:hover {
  transform: scaleX(1.05) scaleY(1.05);
}

.header
  > .navbar-mobile
  .navbar-links
  .navbar-link.plugin-dropdown-menu[href*='listing'],
.header[data-type='2'][is-inverse='true']
  > .header-content
  .header-navbar
  .navbar-link.plugin-dropdown-menu[href*='listing'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230062ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  padding-left: 2.75rem;
}

.header[is-inverse='true'] > .header-content .content-mobile .toggler-button {
  color: var(--neutral-base);
}

.tref-lp .content-container {
  background: none;
  box-shadow: none;
  padding: 0 2rem;
  max-width: 100%;
}

.tref-lp .hero-content:before {
  background: white;
}

.tref-lp .main-title,
.tref-lp .cursor {
  background: none;
  color: var(--neutral-base);
}

.tref-lp .main-title {
  font-size: 3.75rem;
}

.tref-lp .slogan-container {
  min-height: 9rem;
}

.tref-lp .search-section {
  flex-direction: row;
  margin: 0 auto;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
}

.tref-lp .search-input-container {
  max-width: 100%;
  min-width: 400px;
}

.tref-lp .search-icon,
.tref-lp .location-icon,
.tref-lp .location-btn,
.tref-lp .search-placeholder,
.search-input-container,
.tref-lp-thin .hero-content .content-container .search-section .location-btn {
  color: #6b7280;
  font-weight: normal;
}

.search-input-container svg {
  position: absolute;
  top: 50%;
  z-index: 10;
  left: 24px;
  transform: translateY(-50%);
}

.tref-lp .location-btn:hover {
  background: none;
  transform: none;
}

.tref-lp .search-btn {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.2s;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  height: 80px;
  width: 80px;
  padding: 0;
  border-radius: 50px;
}

.tref-lp.tref-lp-thin .search-btn {
  width: auto;
  border-radius: 0.5rem;
  height: auto;
  padding: 1.2rem 2rem;
}

.tref-lp input#searchInput,
.tref-lp .location-btn,
.tref-lp-thin
  .hero-content
  .content-container
  .search-section
  .search-input-container
  input#searchInput,
.tref-lp-thin .hero-content .content-container .search-section .location-btn {
  background: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid #dadee7;
}

.content-form + .button {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
}

/* Landing tref-new-hp: layout principal */
.tref-new-hp .main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 165px);
  padding: 3rem 0;
  margin-left: 70px;
}

.tref-new-hp .main-logo img {
  width: 16rem;
}

.tref-new-hp .sidebar-icons {
  position: absolute;
  left: 0;
  top: 75px;
  transform: none;
  background: #f0f1ff;
  padding: 16px 12px;
  border-radius: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid #cce0ff;
  min-height: calc(100% - 75px);
}

.pd-t .tref-new-hp .sidebar-icons {
  top: 115px;
}

.tref-new-hp .sidebar-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: default;
  position: relative;
  transition: background 0.2s;
  padding: 0.5rem;
  border: 1px solid transparent;
  color: var(--highlight-base);
  cursor: pointer;
}

.tref-new-hp .sidebar-icon.menu-toggle {
  cursor: pointer;
  margin-bottom: 8px;
}

.tref-new-hp .sidebar-icon img {
  width: 16px;
  height: 16px;
  color: var(--highlight-base);
}

.tref-new-hp .sidebar-icon .tooltip {
  position: absolute;
  left: 60px;
  background: white;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.05),
    0 2px 4px -2px rgb(0 0 0 / 0.05);
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #e5e7eb;
  color: var(--neutral-base);
}

.tref-new-hp .sidebar-icon:hover {
  background: #0062ff1a;
  border-color: #0062ff33;
}

.tref-new-hp .sidebar-icon:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tref-new-hp .btn-options {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid #e2e8f0;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
}

.tref-new-hp .btn-options svg {
  width: 18px;
  height: 18px;
}

.menu-overlay {
  pointer-events: none;
}

.menu-overlay.active {
  pointer-events: auto;
}

/*
.tref-new-hp .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

.tref-new-hp .menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
*/

.tref-new-hp .sliding-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 100vh;
  background: #f0f1ff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.pd-t .tref-new-hp .sliding-menu {
  top: 40px;
  padding-bottom: 60px;
}

.tref-new-hp .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  justify-content: flex-end;
}

.tref-new-hp .menu-close {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tref-new-hp .menu-close img {
  width: 20px;
  height: 20px;
  color: var(--highlight-base);
}

.tref-new-hp .categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  margin-bottom: 0;
}

.tref-new-hp .category-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.375rem;
  height: 72px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 0.125rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  border: 1px solid #cce0ff;
}

.tref-new-hp .category-icon {
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.tref-new-hp .category-icon img {
  width: 16px;
  height: 16px;
  color: #3b82f6;
}

.tref-new-hp .category-name {
  font-size: 0.65rem;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.4;
}

.tref-new-hp .btn-all-categories {
  display: block;
  width: 100%;
  padding: 16px;
  background: #1a1a2e;
  color: white;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: background 0.2s;
}

.tref-new-hp .sliding-menu .button:hover {
  transform: inherit;
}

.header[data-type='2'] > .header-content .content-left {
  width: 100%;
  max-width: calc(100% - 200px);
  margin: 0;
}

.header[data-type='2'] > .header-content .content-left .header-navbar {
  gap: 0.25rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.header[data-type='2'] > .header-content .content-right {
  margin: 0;
  gap: 0.25rem;
  flex-direction: row-reverse;
}

.header[data-type='2']
  > .header-content
  .header-navbar
  .navbar-link.plugin-dropdown-menu,
.header > .header-content .content-right .button {
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.625rem 1rem;
  margin: 0;
  border-radius: 1rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.2s;
  font-weight: 500;
}

.header[data-type='2'][is-inverse='true'] .content-right .button.is-inverse {
  background: var(--highlight-base);
  color: white;
  border: none;
}

.header[data-type='2'][is-inverse='true'] .content-right .button.is-primary {
  background: none;
  color: var(--neutral-base);
}

.pricing-plans[data-type='cards-single'] .pricing-header h2 {
  font-size: 3rem;
}

.pricing-plans[data-type='cards-single'] .pricing-plan-card {
  max-height: 640px;
}

.pricing-plans[data-type='cards-single'] .pricing-plan-card .image-block img {
  width: 100%;
}

@media (max-width: 992px) {
  .pricing-plans[data-type='cards-single'] .pricing-plan-card {
    max-height: inherit;
  }

  .pricing-plans[data-type='cards-single'] .pricing-plan-card .image-block img {
    max-height: 450px;
    object-fit: cover;
  }
}

.pricing-plans[data-type='cards-single'] .pricing-plan-card .content-block {
  padding: 2.5rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .content-block-title
  h3 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group {
  flex-flow: row wrap;
  gap: 1.5rem 0.5rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group
  .button {
  margin: 0;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group
  .main-price
  .value {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--neutral-base);
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group
  .main-price
  .recurrence {
  transform: none;
  align-items: center;
  justify-content: flex-end;
  display: flex;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-left: 0.5rem;
  color: var(--neutral-transp-50);
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group
  .alt-price {
  color: var(--neutral-transp-50);
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .content-block-title
  .tag-free-trial {
  color: var(--highlight-base);
  border-color: var(--highlight-base);
  background-color: var(--highlight-transp-10);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-body
  .details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  position: relative;
  padding: 2rem 0 0;
  margin-top: 2rem;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-body
  .details-list:before {
  content: 'What You Get:';
  position: absolute;
  top: 0;
  left: 0;
  font-weight: bold;
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-body
  .details-list
  li:before {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23016dff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%206%209%2017l-5-5%27/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: initial;
  color: transparent;
}

.tref-new-hp .browse-mobile {
  margin: 3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  display: none;
}

.tref-new-hp .browse-mobile .categories-grid {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.tref-new-hp .browse-mobile .categories-grid .category-card {
  flex-direction: row;
  gap: 0.5rem;
  height: auto;
  background: #eff0fb80;
  border-color: #e5e7eb;
  min-height: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  transform: none;
}

.tref-new-hp .browse-mobile .categories-grid .category-card .category-name {
  font-size: 0.75rem;
}

.tref-new-hp .banner[type='square'] {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tref-new-hp .banner[type='square'] img {
  max-width: 100%;
}

.header[data-type='2']
  > .header-content
  .header-navbar
  .navbar-link.plugin-dropdown-menu:hover,
.header[data-type='2'][is-inverse='true']
  .content-right
  .button.is-primary:hover {
  background: var(--neutral-transp-5);
  color: var(--neutral-base) !important;
  box-shadow: none;
  transform: none;
}

.header[data-type='2']
  > .header-content
  .header-navbar
  .navbar-link.plugin-dropdown-menu.is-active,
.header[data-type='2']
  > .header-content
  .header-navbar
  .navbar-link.plugin-dropdown-menu.is-active:hover {
  background: var(--highlight-transp-10);
  color: var(--highlight-base) !important;
}

.header[data-type='2'][is-inverse='true']
  .content-right
  .button.is-inverse:hover {
  color: white;
}

.tref-new-hp .btn-options:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.tref-new-hp .category-card:hover {
  transform: scaleX(1.02) scaleY(1.02);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  background: white;
}

.tref-new-hp .btn-all-categories:hover {
  background: #0f0f1a;
}

.tref-new-hp .sliding-menu.active {
  transform: translateX(0);
}

.pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .content-block
  .content-block-header
  .price-group:has(.button[onclick='checkout(10)'])
  .main-price
  .value {
  color: var(--highlight-base);
}

@media (max-width: 1200px) {
  .tref-lp .main-title {
    font-size: 3rem;
  }

  .tref-lp .slogan-container {
    min-height: 7rem;
  }

  .tref-lp .location-btn,
  .tref-lp #searchInput,
  .tref-lp .search-placeholder {
    font-size: 0.875rem !important;
  }

  .tref-lp .search-input-container {
    min-width: 380px;
  }

  .tref-new-hp .main-logo img {
    width: 14rem;
  }
}

@media (max-width: 1024px) {
  .tref-lp .main-title {
    font-size: 1.875rem;
  }

  .tref-lp .slogan-container {
    min-height: 5rem;
  }

  .tref-lp .location-btn,
  .tref-lp #searchInput {
    padding: 1rem 1rem;
    border-radius: 0.5rem;
  }

  .tref-lp .search-placeholder {
    font-size: 1rem;
  }

  .search-input-container svg {
    height: 20px;
  }

  .tref-lp .location-btn svg {
    height: 20px;
  }

  .tref-lp .search-input-container {
    min-width: 280px;
  }

  .tref-lp .search-btn {
    height: 56px;
    width: 56px;
  }

  .tref-lp.tref-lp-thin .search-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
  }

  .tref-lp-thin
    .hero-content
    .content-container
    .search-section
    .search-input-container
    input#searchInput,
  .tref-lp-thin .hero-content .content-container .search-section .location-btn {
    min-height: 54px;
  }

  .tref-lp #searchInput,
  .tref-lp-thin
    .hero-content
    .content-container
    .search-section
    .search-input-container
    input#searchInput {
    padding-left: 3rem;
    font-size: 1.15rem;
  }
}

@media (max-width: 992px) {
  .header[data-type='2'] > .header-content .content-left {
    max-width: 100%;
  }

  .pricing-plans[data-type='cards-single']
    .pricing-plan-card.alt-order
    .image-block {
    order: 1;
  }

  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .pricing-plans[data-type='cards-single'] .pricing-header h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .tref-new-hp .main-content {
    margin-left: 0;
    padding: 0;
    justify-content: flex-start;
    padding: 2rem 0;
  }

  .tref-new-hp .main-logo img {
    width: 8rem;
  }

  .tref-new-hp .search-container {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .tref-new-hp .sliding-menu {
    width: 100%;
  }

  .tref-new-hp .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tref-new-hp .sidebar-icons,
  .tref-lp .slogan-container,
  .tref-new-hp .content-form + .button {
    display: none;
  }

  .tref-lp .search-section {
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    margin-top: 2rem;
  }

  .tref-lp .search-inputs,
  .tref-lp .location-btn,
  .tref-lp .search-button-container {
    width: 100%;
  }

  .tref-lp .search-inputs {
    flex-direction: column;
    gap: 1rem;
  }

  .tref-lp-thin .hero-content {
    padding: 1.5rem;
  }

  .tref-lp.tref-lp-thin .search-btn {
    width: 100%;
    max-width: 100%;
    border-radius: 50px;
  }

  .tref-lp .search-btn {
    width: 100%;
  }

  .tref-lp .search-input-container svg {
    left: 20px;
  }

  .tref-lp #searchInput {
    padding-left: 3.5rem;
    border-radius: 0.5rem;
  }

  .tref-lp .content-container {
    padding: 0 2rem;
  }

  .tref-new-hp .browse-mobile {
    display: flex;
  }

  .header > .navbar-mobile {
    box-shadow: none;
    border-color: #e5e7eb;
    padding: 1rem 0;
  }

  /*
    .header>.navbar-mobile .navbar-links,
    .header>.navbar-mobile .navbar-links:not(:first-child) {
       border: none;
       padding: 0 1rem;
    }
    */

  .header > .navbar-mobile .navbar-links a,
  .header
    > .navbar-mobile
    .navbar-links
    .navbar-link.plugin-dropdown-menu:not(:first-child),
  .header > .navbar-mobile .navbar-links .navbar-link.plugin-dropdown-menu {
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1rem !important;
    line-height: 1.5rem;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
  }

  .header
    > .navbar-mobile
    .navbar-links
    .navbar-link.plugin-dropdown-menu[href*='listing'] {
    padding-left: 2.75rem;
  }

  .header > .navbar-mobile .navbar-links a:hover,
  .header
    > .navbar-mobile
    .navbar-links
    .navbar-link.plugin-dropdown-menu:hover,
  .header
    > .navbar-mobile
    .navbar-links
    .navbar-link.plugin-dropdown-menu.is-active {
    background-color: var(--highlight-transp-10);
    color: var(--highlight-base) !important;
  }

  .pricing-plans[data-type='cards-single'] .pricing-plan-card .content-block {
    padding: 1.5rem;
  }

  .pricing-plans[data-type='cards-single']
    .pricing-plan-card
    .content-block
    .content-block-body
    .details-list {
    grid-template-columns: 1fr;
  }
}

.banner[type='square']:not([data-section='main']) .banner-link,
.banner[type='square'] img {
  max-height: 500px;
  max-width: 500px;
}

.header[data-type='2'] .content-right .button,
.header[data-type='2'] .content-right .user-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.details-default > .details-modal .modal-header .modal-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/*
.details-default.details-classifieds>.details-header:not(.details-header-mobile):before,
.details-default.details-classifieds>.details-header.details-header-mobile .detail-header-content-mobile:before {
    background: var(--highlight-base);
}*/

.details-default.details-classifieds
  > .details-header.details-header-mobile
  .details-share
  .bookmark,
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .details-share
  .fa-bookmark,
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .details-share
  .fa-bookmark-o,
.details-default.details-classifieds
  > .details-header
  .details-general
  .details-info
  .details-share
  .bookmark,
.details-default.details-classifieds
  > .details-header
  .details-general
  .details-info
  .details-share
  .fa-bookmark,
.details-default.details-classifieds
  > .details-header
  .details-general
  .details-info
  .details-share
  .fa-bookmark-o {
  color: white;
}

.details-default.details-listing
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-left
  .cards-default[data-type='classifieds']
  .cards-list {
  position: relative;
  margin-top: 1rem;
}

/*
.details-default.details-listing>.detail-body .detail-body-content .tab-content .tab-left .cards-default[data-type="classifieds"] .cards-list:before {
    content: "Classifieds";
    position: absolute;
    top: -3rem;
    font-weight: 700;
    font-size: 1.15rem;
    left: 1rem;
}*/

.details-default.details-listing
  > .detail-body
  .detail-body-content
  .tab-content[data-cy='Overview']
  .tab-left
  .cards-default[data-type='classifieds']
  .cards-list
  .card {
  display: none;
}

.details-default.details-listing
  > .detail-body
  .detail-body-content
  .tab-content[data-cy='Overview']
  .tab-left
  .cards-default[data-type='classifieds']
  .cards-list
  .card:nth-child(-n + 3) {
  display: block;
}

@media (max-width: 680px) {
  .members-page
    .members-panel.edit-panel
    .panel-body
    .custom-edit-content
    .row-gap
    .col-md-6,
  .members-page
    .members-panel.edit-panel
    .panel-body
    .custom-edit-content
    .col-sm-4,
  .members-page
    .members-panel.edit-panel
    .panel-body
    .custom-edit-content
    .default-row-biling
    .col-md-4 {
    width: 100% !important;
  }
}

.tref-new-hp .sliding-menu .button {
  text-align: center;
}

.tref-new-hp .sliding-menu .button.is-outline,
.tref-new-hp .browse-mobile .button.is-outline {
  border: 2px solid var(--brand-base);
  color: var(--brand-base);
  font-weight: bold;
  background: var(--brand-transp-10);
}

.tref-new-hp .browse-mobile .button.is-outline {
  margin-top: 1rem;
}

.summary-list[list-type='grid-view']
  .summary-card[summary-type='9']
  .summary-content
  .summary-info
  .summary-info-item {
  display: none;
}

.wrap-share {
  max-width: 100%;
}
.wrap-share .share {
  position: relative;
  display: inline-block;
}
.wrap-share .share-btn {
  appearance: none;
  cursor: pointer;
  color: var(--highlight-base);
  border: none;
  background: none;
}
.wrap-share .menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: auto;
  background: white;
  border: 1px solid var(--neutral-transp-10);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  display: none;
  z-index: 10;
  gap: 0.25rem;
}
.wrap-share .menu.open {
  display: flex;
}
.wrap-share .item {
  text-align: left;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.5rem;
}
.wrap-share .item .fa {
  font-size: 1rem;
}
.wrap-share .item:hover {
  background: var(--highlight-base);
  color: white;
}
.wrap-share .toast {
  font-size: 14px;
  min-height: 18px;
  position: absolute;
  width: 300px;
  left: 40px;
  top: 50%;
  border-radius: 0.5rem;
  transform: translateY(-50%);
}
.wrap-share .row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.wrap-share .link-preview {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--neutral-transp-10);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

@media (max-width: 680px) {
  .wrap-share .toast {
    display: none;
  }
}

.tref-lp .content-container {
  position: relative;
}

.tref-lp .main-title {
  background-clip: text;
}

#searchInput:focus {
  outline: none;
}

/* AI Mode Styles for searchbox */
.tref-lp .ai-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(233, 238, 255, 0.5);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: center;
  width: 180px;
  margin: 0 auto 1rem;
}

.tref-lp .ai-mode-toggle:hover {
  background: rgba(233, 238, 255, 0.8);
}

.tref-lp .ai-mode-toggle-icon {
  display: flex;
  align-items: center;
}

.tref-lp .ai-mode-toggle-icon img {
  width: 1.25rem;
  height: 1.25rem;
  filter: invert(1);
  opacity: 0.25;
}

.tref-lp .ai-mode-toggle-text {
  color: #085cf0;
  font-size: 0.875rem;
  font-weight: 600;
}

.tref-lp .switch-button {
  position: relative;
  width: 2.5rem;
  height: 1.25rem;
  background: rgba(8, 92, 240, 0.3);
  border-radius: 0.625rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tref-lp .switch-button.is-enable {
  background: #085cf0;
}

.tref-lp .switch-button.is-disable {
  background: rgba(8, 92, 240, 0.3);
}

.tref-lp .switch-button .toggle-item {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  width: 1rem;
  height: 1rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tref-lp .switch-button.is-disable .toggle-item {
  transform: translateX(-1.25rem);
}

.tref-lp .switch-button.is-enable .toggle-item {
  transform: translateX(0);
}

/* Gradient Container for AI Mode */
.tref-lp .gradient-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 0.25rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

.tref-lp .search-forms-wrapper.ai-mode-active .gradient-container {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Search Forms Wrapper */
.tref-lp .search-forms-wrapper {
  position: relative;
  width: 100%;
  min-height: 0;
}

/* Normal Mode */
.tref-lp .content-form.normal-mode {
  position: relative;
  display: block;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  z-index: 1;
}

/* AI Mode */
.tref-lp .content-form.ai-mode {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  padding: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 2;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  pointer-events: none;
  display: block;
  min-height: 0;
}

.tref-lp .content-form.ai-mode.ai-mode-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Show AI mode form when wrapper has ai-mode-active - Higher specificity */
.tref-lp .search-forms-wrapper.ai-mode-active .content-form.ai-mode {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.tref-lp .search-forms-wrapper.ai-mode-active .content-form.normal-mode {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.input-group-addon.classified-price-currency-addon select#price_flag {
  width: 100px;
  background: rgba(62, 69, 94, 0.25);
  border: none;
  border-radius: 0;
}

.input-group-addon.classified-price-currency-addon {
  border: none;
  width: 100px;
  background: rgba(62, 69, 94, 0.25);
  padding: 0;
}

span.input-group-addon.classified-price-currency-addon input {
  margin: 0;
}

.custom-details-header .rating .details-reviews .reviews-rating {
  color: white;
  font-size: 1rem;
}

.custom-details-header .rating .details-reviews .reviews-stars .fa {
  color: var(--warning-base);
}

.hero .rating .details-reviews .reviews-count .link {
  color: white;
}

.listing-classifieds-cards-wrapper .cards-header {
  display: none;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-header
  .details-reviews
  .reviews-stars {
  margin: 0;
}

.details-default
  > .detail-body
  .detail-body-content
  .tab-content
  .tab-item-reviews
  .reviews-list
  .reviews-item {
  margin: 1rem 0 0;
}

.tref-new-hp.thin .main-content {
  margin: 0;
  min-height: inherit;
  padding-bottom: 0;
}

.tref-lp .search-forms-wrapper > .gradient-container .content-form.ai-mode {
  padding: 0;
}

.tref-lp .search-forms-wrapper .gradient-container {
  background: none;
}

.tref-lp #searchTerm.ai-search-input,
.tref-lp .ai-search-input.form-control-reset,
.tref-lp .gradient-container #searchTerm.ai-search-input,
.tref-lp .gradient-container .form-control-reset.ai-search-input {
  padding: 1.25rem 1rem 1.25rem 3.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
  border: 1px solid #dadee7 !important;
}

.tab-content[data-cy='Overview']
  .tab-item.tab-item-classifieds
  .listing-classifieds-toolbar {
  display: none;
}

.tab-content[data-cy='Overview']
  .tab-item.tab-item-classifieds
  .listing-classifieds-cards-wrapper
  .cards-list
  .card {
  display: none !important;
}

.tab-content[data-cy='Overview']
  .tab-item.tab-item-classifieds
  .listing-classifieds-cards-wrapper
  .cards-list
  .card:nth-child(-n + 6) {
  display: block !important;
}

.tref-lp .search-inputs--ai .ai-search-container img {
  display: none;
}

@media (max-width: 992px) {
  ul.search-tips-list + .button {
    display: none;
  }
  .tref-lp .search-button-container .search-btn {
    width: 100%;
    border-radius: var(--border-radius);
  }
}

@media (max-width: 768px) {
  .tref-lp .ai-mode-toggle {
    margin: 1.5rem auto 0;
  }
}

.details-default .alert.alert-danger {
  display: none;
}

/* ============================================================
   /advertise � 3-up pricing grid  � v3  2026-05-21
   Equal-height cards � brand blue � collapsible features
   JS grouper in base.html.twig builds the wrapper.
   ============================================================ */

/* -- Brand aliases -------------------------------------------- */
.pricing-plans-grid {
  --pg-blue: var(--highlight-base, #137df7);
  --pg-dark: var(--highlight-dark, #0f6bc8);
  --pg-text: #0d1b2a;
  --pg-muted: #64748b;
  --pg-border: #e2e8f0;
  --pg-surface: #f4f8ff;
}

/* -- Section wrapper -------------------------------------------- */
.pricing-plans-grid {
  background: var(--pg-surface);
  padding: 0 0 90px;
}
.pricing-plans-grid .pricing-grid-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
  padding: 72px 20px 0;
}
.pricing-plans-grid .pricing-grid-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--pg-text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pricing-plans-grid .pricing-grid-header p {
  font-size: 1.05rem;
  color: var(--pg-muted);
  margin: 0;
  line-height: 1.65;
}

/* -- Grid row � stretch = all cards the same height ------------ */
.pricing-plans-grid .pricing-grid-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1040px) {
  .pricing-plans-grid .pricing-grid-row {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 20px;
  }
  .pricing-plans-grid .pricing-plan-card {
    max-width: 100% !important;
  }
}
@media (max-width: 640px) {
  .pricing-plans-grid .pricing-grid-row {
    padding: 0 16px;
    max-width: 100%;
  }
  .pricing-plans-grid {
    padding-bottom: 56px;
  }
  .pricing-plans-grid .pricing-grid-header {
    padding-top: 48px;
  }
}

/* -- Neutralise each plan's outer wrapper ---------------------- */
.pricing-plans-grid .pricing-plans {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
.pricing-plans-grid .pricing-plans > .container {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  height: 100%;
}
.pricing-plans-grid .pricing-plans .pricing-header {
  display: none !important;
}

/* -- Card shell ------------------------------------------------ */
.pricing-plans-grid .pricing-plan-card {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin-top: 0 !important;
  border: 1.5px solid var(--pg-border) !important;
  box-shadow: 0 2px 18px rgba(13, 27, 42, 0.07) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  position: relative;
}
.pricing-plans-grid .pricing-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(13, 27, 42, 0.12) !important;
}

/* -- Featured (middle) card ------------------------------------ */
.pricing-plans-grid .pricing-plan-card.is-featured {
  border: 2px solid var(--pg-blue) !important;
  box-shadow: 0 8px 32px rgba(19, 125, 247, 0.18) !important;
}
.pricing-plans-grid .pricing-plan-card.is-featured::before {
  content: '\2605 MOST POPULAR';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--pg-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 5px 16px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(19, 125, 247, 0.3);
}

/* -- Image strip � fixed height, full width -------------------- */
.pricing-plans-grid .pricing-plan-card .image-block {
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  overflow: visible !important;
  background: #e8f1ff !important;
  display: block !important;
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 0 !important;
}
.pricing-plans-grid .pricing-plan-card.is-featured .image-block {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
}
.pricing-plans-grid .pricing-plan-card .image-block img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  max-width: 100% !important;
}
.pricing-plans-grid .pricing-plan-card.no-image .image-block {
  display: none !important;
}

/* -- Content block � fills remaining card height --------------- */
.pricing-plans-grid .pricing-plan-card .content-block,
.pricing-plans-grid .pricing-plan-card .topics-block {
  width: 100% !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  order: 1 !important;
}

/* -- Content-block-header � flex column, price sticks to bottom  */
/*    description { flex:1 } absorbs leftover space so that       */
/*    price + button are at the SAME vertical position on all     */
/*    cards regardless of description length.                     */
.pricing-plans-grid .pricing-plan-card .content-block-header {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  padding: 24px 22px 0 !important;
  text-align: center;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
}
.pricing-plans-grid .pricing-plan-card.is-featured .content-block-header {
  padding-top: 40px !important;
}
.pricing-plans-grid .pricing-plan-card.no-image .content-block-header {
  padding-top: 34px !important;
}
.pricing-plans-grid .pricing-plan-card .content-block-title {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  flex-wrap: wrap;
  gap: 6px;
}
.pricing-plans-grid .pricing-plan-card .content-block-title h3 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--pg-text) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}
.pricing-plans-grid .pricing-plan-card.is-featured .content-block-title h3 {
  color: var(--pg-blue) !important;
}

/* description flex:1 is the KEY to aligned prices */
.pricing-plans-grid .pricing-plan-card .description {
  font-size: 0.875rem !important;
  color: var(--pg-muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  flex: 1;
  min-height: 3.5em !important;
  display: flex !important;
  align-items: flex-start !important;
  text-align: center !important;
  padding-bottom: 4px !important;
}
.pricing-plans-grid .pricing-plan-card .description br {
  display: none !important;
}

/* -- Price group � always at bottom of header zone ------------- */
.pricing-plans-grid .pricing-plan-card .price-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  gap: 4px;
  margin: 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid var(--pg-border) !important;
  margin-top: auto !important;
}
.pricing-plans-grid .pricing-plan-card .main-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  justify-content: center !important;
}
.pricing-plans-grid .pricing-plan-card .main-price .value {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  color: var(--pg-blue) !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
}
.pricing-plans-grid .pricing-plan-card .main-price .recurrence {
  font-size: 0.8rem !important;
  color: var(--pg-muted) !important;
  transform: none !important;
  -ms-transform: none !important;
  font-weight: 400 !important;
}
.pricing-plans-grid .pricing-plan-card .alt-price {
  font-size: 0.78rem !important;
  color: var(--pg-muted) !important;
  font-weight: 400 !important;
}

/* -- CTA button ------------------------------------------------ */
.pricing-plans-grid .pricing-plan-card .button.is-primary {
  display: block !important;
  margin: 14px 0 18px !important;
  width: 100% !important;
  text-align: center !important;
  padding: 13px 20px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  background: var(--pg-blue) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(19, 125, 247, 0.25) !important;
  transition:
    background 0.2s,
    transform 0.12s,
    box-shadow 0.2s;
  letter-spacing: 0.01em;
  border: none !important;
}
.pricing-plans-grid .pricing-plan-card .button.is-primary:hover {
  background: var(--pg-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(19, 125, 247, 0.38) !important;
  color: #fff !important;
}
.pricing-plans-grid .pricing-plan-card.is-free .button.is-primary {
  background: #1e293b !important;
  box-shadow: 0 3px 12px rgba(13, 27, 42, 0.2) !important;
}
.pricing-plans-grid .pricing-plan-card.is-free .button.is-primary:hover {
  background: #0f172a !important;
}

/* -- Features accordion toggle button ------------------------- */
.pricing-plans-grid .pricing-plan-card .features-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--pg-border) !important;
  padding: 12px 22px !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--pg-blue) !important;
  text-align: left !important;
  outline: none !important;
  transition: background 0.15s !important;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.pricing-plans-grid .pricing-plan-card .features-toggle:hover {
  background: var(--pg-surface) !important;
}
.pricing-plans-grid .pricing-plan-card .features-toggle .toggle-icon {
  font-size: 9px !important;
  transition: transform 0.2s !important;
  display: inline-block !important;
  margin-left: 8px !important;
  flex-shrink: 0;
}
.pricing-plans-grid
  .pricing-plan-card
  .features-toggle[aria-expanded='true']
  .toggle-icon {
  transform: rotate(180deg) !important;
}

/* -- Features list (JS controls display) ----------------------- */
.pricing-plans-grid .pricing-plan-card .content-block-body,
.pricing-plans-grid .pricing-plan-card .topics-block {
  columns: 1 !important;
  column-count: 1 !important;
  overflow: hidden;
  flex: 0 0 auto;
}
.pricing-plans-grid .pricing-plan-card .details-list {
  list-style: none !important;
  padding: 8px 22px 16px !important;
  margin: 0 !important;
  columns: 1 !important;
  column-count: 1 !important;
  display: block !important;
  width: 100% !important;
}
.pricing-plans-grid .pricing-plan-card .details-list li {
  position: relative !important;
  padding: 7px 0 7px 26px !important;
  font-size: 0.855rem !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  float: none !important;
  width: 100% !important;
  display: block !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
.pricing-plans-grid .pricing-plan-card .details-list li:last-child {
  border-bottom: none !important;
}
/* Brand-blue SVG circle check for all list items */
.pricing-plans-grid .pricing-plan-card .details-list li::before,
.pricing-plans-grid
  .pricing-plans[data-type='cards-single']
  .pricing-plan-card
  .topics-block
  .details-list
  li::before {
  content: '' !important;
  font-family: unset !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: rgba(19, 125, 247, 0.12)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23137df7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3,8 7,12 13,4'/></svg>")
    center/9px no-repeat !important;
  color: transparent !important;
  margin-right: 0 !important;
  display: block !important;
  text-align: left !important;
}
/* end /advertise grid v3 */

/* fix: accordion toggle + expanded body must come after the content-block */
.pricing-plans-grid .pricing-plan-card > .features-toggle {
  order: 2 !important;
}
.pricing-plans-grid .pricing-plan-card > .content-block-body,
.pricing-plans-grid .pricing-plan-card > .topics-block {
  order: 3 !important;
}

/* ======================================================
   PRICING FEATURES MODAL
   ====================================================== */
.pg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.pg-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}
.pg-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
  max-width: 500px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: #dde3ed #f4f8ff;
}
.pg-modal-backdrop.is-open .pg-modal {
  transform: none;
  opacity: 1;
}
.pg-modal-head {
  position: sticky;
  top: 0;
  background: var(--highlight-base, #137df7);
  color: #fff;
  padding: 22px 24px 18px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}
.pg-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.25;
  color: #fff !important;
}
.pg-modal-subtitle {
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.82;
  color: #fff !important;
}
.pg-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  min-width: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  transition:
    background 0.15s,
    transform 0.15s;
  margin-top: 2px;
}
.pg-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}
.pg-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pg-modal-body {
  padding: 8px 24px 28px;
}
.pg-modal-body .details-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.pg-modal-body .details-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 13px 0 !important;
  border-bottom: 1px solid #eef2f8 !important;
  font-size: 0.95rem !important;
  color: #1e293b !important;
  line-height: 1.45 !important;
}
.pg-modal-body .details-list li:last-child {
  border-bottom: none !important;
}
.pg-modal-body .details-list li::before {
  content: '' !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  background: rgba(19, 125, 247, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23137df7' d='M10 3L5 8.5 2 5.5l-1 1L5 10.5l6-7z'/%3E%3C/svg%3E")
    center / 12px no-repeat !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  font-size: 0 !important;
}

/* Mobile: native bottom-sheet style */
@media (max-width: 640px) {
  .pg-modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
    background: rgba(13, 27, 42, 0.6) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .pg-modal {
    border-radius: 22px 22px 0 0 !important;
    max-height: 87vh !important;
    max-width: 100% !important;
    width: 100% !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.32, 1, 0.45, 1) !important;
    opacity: 1 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .pg-modal-backdrop.is-open .pg-modal {
    transform: translateY(0) !important;
  }
  /* drag-handle pill */
  .pg-modal::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 3px;
    margin: 10px auto -4px;
  }
  .pg-modal-head {
    border-radius: 0 !important;
    padding: 14px 20px 14px !important;
  }
  .pg-modal-title {
    font-size: 1.05rem !important;
  }
  .pg-modal-close {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .pg-modal-body {
    padding: 4px 20px 24px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .pg-modal-body .details-list li {
    padding: 14px 0 !important;
    font-size: 0.93rem !important;
  }
}

/* ============================================================
   TREF STORIES � Phase 1 prototype styles
   ============================================================ */
.tref-story-logo-wrap {
  display: inline-block;
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: transparent;
  line-height: 0;
  transition: transform 0.2s ease;
}
.tref-story-logo-wrap.has-story {
  padding: 3px;
  background: conic-gradient(
    from 220deg,
    #137df7,
    #ff416c,
    #fc6076,
    #ff9a44,
    #137df7
  );
  box-shadow: 0 0 0 2px #fff inset;
}
.tref-story-logo-wrap.has-story:hover {
  transform: scale(1.04);
}
.tref-story-logo-wrap.is-owner:not(.has-story) {
  padding: 3px;
  background: repeating-conic-gradient(
    #137df7 0 10deg,
    transparent 10deg 20deg
  );
  opacity: 0.85;
}
.tref-story-logo-wrap.is-owner:not(.has-story)::after {
  content: '+';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #137df7;
  color: #fff;
  font: 700 14px/18px sans-serif;
  text-align: center;
  border: 2px solid #fff;
}
.tref-story-logo-img {
  display: block;
  border-radius: 50%;
  background: #fff;
}

/* Floating FAB */
.tref-story-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #137df7, #0f6bc8);
  color: #fff;
  font:
    600 14px/1 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  box-shadow: 0 10px 30px rgba(19, 125, 247, 0.45);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tref-story-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(19, 125, 247, 0.55);
}
.tref-fab-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font: 700 16px/1 sans-serif;
}

/* Modal */
.tref-modal-bd {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.tref-modal-bd.is-open {
  opacity: 1;
}
.tref-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}
.tref-modal-bd.is-open .tref-modal {
  transform: none;
}
.tref-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.tref-modal-head h3 {
  margin: 0;
  font:
    600 16px/1.3 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: #111;
}
.tref-modal-x {
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
  border-radius: 6px;
}
.tref-modal-x:hover {
  background: #f3f5f9;
}
.tref-modal-body {
  padding: 18px 20px 22px;
}
.tref-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.tref-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  font:
    600 14px/1 system-ui,
    sans-serif;
  cursor: pointer;
}
.tref-btn-primary {
  background: linear-gradient(135deg, #137df7, #0f6bc8);
  color: #fff;
}
.tref-btn-primary:hover {
  filter: brightness(1.05);
}
.tref-btn-ghost {
  background: #eef2f7;
  color: #333;
}

/* Tabs */
.tref-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 14px;
  overflow-x: auto;
}
.tref-tab {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font:
    500 13px/1 system-ui,
    sans-serif;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}
.tref-tab.is-active {
  background: #137df7;
  color: #fff;
}

/* Templates */
.tref-templates {
  margin-bottom: 14px;
}
.tref-tpl-label {
  font:
    600 12px/1 system-ui,
    sans-serif;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.tref-tpl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tref-tpl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  background: #fafbfd;
  cursor: pointer;
  font:
    500 12px/1.2 system-ui,
    sans-serif;
  color: #333;
}
.tref-tpl:hover {
  border-color: #137df7;
  background: #f0f6ff;
}
.tref-tpl-emoji {
  font-size: 20px;
}

/* Composer fields */
.tref-input,
.tref-pane select,
.tref-pane input[type='datetime-local'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  font:
    14px/1.4 system-ui,
    sans-serif;
  margin-bottom: 8px;
  background: #fff;
  color: #111;
}
.tref-input:focus {
  outline: none;
  border-color: #137df7;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.18);
}
.tref-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.tref-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font:
    600 12px/1 system-ui,
    sans-serif;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tref-field select,
.tref-field input {
  margin-bottom: 0;
  text-transform: none;
}
.tref-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border: 2px dashed #c5cfdc;
  border-radius: 10px;
  color: #666;
  font:
    500 14px/1.3 system-ui,
    sans-serif;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s ease;
}
.tref-drop span {
  color: #137df7;
  text-decoration: underline;
  margin-left: 4px;
}
.tref-drop.is-drag {
  border-color: #137df7;
  background-color: #eef6ff;
}
.tref-drop.has-img {
  color: transparent;
  border-style: solid;
  border-color: transparent;
}
.tref-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tref-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.tref-swatch.is-active {
  border-color: #111;
  box-shadow: 0 0 0 2px #fff inset;
}

/* Preview */
.tref-preview-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.tref-preview {
  width: 180px;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Slide content */
.tref-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
}
.tref-slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.tref-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.tref-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font:
    500 14px/1.3 system-ui,
    sans-serif;
}
.tref-slide-inner {
  padding: 24px;
  text-align: center;
  max-width: 90%;
}
.tref-slide-inner h2 {
  margin: 0 0 10px;
  font:
    800 28px/1.05 system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.tref-slide-inner p {
  margin: 0 0 12px;
  font:
    500 16px/1.35 system-ui,
    sans-serif;
  opacity: 0.95;
}
.tref-slide-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  font:
    600 13px/1 system-ui,
    sans-serif;
}
.tref-slide-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  font:
    700 10px/1 system-ui,
    sans-serif;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* Picker */
.tref-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
  cursor: pointer;
  font:
    500 14px/1 system-ui,
    sans-serif;
  text-align: left;
}
.tref-picker-row:hover {
  border-color: #137df7;
  background: #f6faff;
}
.tref-picker-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

/* Upsell */
.tref-upsell {
  text-align: center;
  padding: 16px 6px;
}
.tref-upsell-icon {
  font-size: 42px;
  margin-bottom: 8px;
}
.tref-upsell h4 {
  margin: 0 0 8px;
  font:
    700 18px/1.2 system-ui,
    sans-serif;
  color: #111;
}
.tref-upsell p {
  margin: 0 0 16px;
  color: #555;
  font:
    14px/1.5 system-ui,
    sans-serif;
}

/* Toast */
.tref-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font:
    500 13px/1 system-ui,
    sans-serif;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 10001;
}
.tref-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ------ Viewer ------ */
.tref-viewer {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-viewer-stage {
  position: relative;
  width: min(100vw, 420px);
  height: min(100vh, 90vh);
  max-height: 100vh;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .tref-viewer-stage {
    border-radius: 18px;
    height: min(92vh, 820px);
  }
}
.tref-viewer-bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 6;
}
.tref-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.tref-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.tref-viewer-head {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  color: #fff;
}
.tref-viewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.tref-viewer-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  font:
    600 13px/1.2 system-ui,
    sans-serif;
}
.tref-viewer-meta .tref-viewer-time {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.75;
}
.tref-viewer-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.tref-viewer-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-viewer-body .tref-slide {
  height: 100%;
}
.tref-viewer-body .tref-slide-inner h2 {
  font-size: 34px;
}
.tref-viewer-body .tref-slide-inner p {
  font-size: 18px;
}
.tref-viewer-tap-left,
.tref-viewer-tap-right {
  position: absolute;
  top: 60px;
  bottom: 80px;
  width: 35%;
  z-index: 2;
  cursor: pointer;
}
.tref-viewer-tap-left {
  left: 0;
}
.tref-viewer-tap-right {
  right: 0;
}
.tref-viewer-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.tref-reactions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.tref-reactions button {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 0;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.tref-reactions button:hover {
  background: rgba(255, 255, 255, 0.3);
}
.tref-reactions button.is-pop {
  transform: scale(1.35);
}
.tref-viewer-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font:
    500 12px/1.3 system-ui,
    sans-serif;
  opacity: 0.9;
  gap: 10px;
  flex-wrap: wrap;
}
.tref-stat-del {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 640px) {
  .tref-modal {
    border-radius: 14px 14px 0 0;
    align-self: flex-end;
    max-height: 92vh;
  }
  .tref-modal-bd {
    align-items: flex-end;
    padding: 0;
  }
  .tref-tpl-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .tref-story-fab {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px 10px 10px;
  }
}
/* ============================================================
   TREF STORIES — Phase 1 prototype styles
   ============================================================ */
.tref-story-logo-wrap {
  display: inline-block;
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: transparent;
  line-height: 0;
  transition: transform 0.2s ease;
}
.tref-story-logo-wrap.has-story {
  padding: 3px;
  background: conic-gradient(
    from 220deg,
    #137df7,
    #ff416c,
    #fc6076,
    #ff9a44,
    #137df7
  );
  box-shadow: 0 0 0 2px #fff inset;
}
.tref-story-logo-wrap.has-story:hover {
  transform: scale(1.04);
}
.tref-story-logo-wrap.is-owner:not(.has-story) {
  padding: 3px;
  background: repeating-conic-gradient(
    #137df7 0 10deg,
    transparent 10deg 20deg
  );
  opacity: 0.85;
}
.tref-story-logo-wrap.is-owner:not(.has-story)::after {
  content: '+';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #137df7;
  color: #fff;
  font: 700 14px/18px sans-serif;
  text-align: center;
  border: 2px solid #fff;
}
.tref-story-logo-img {
  display: block;
  border-radius: 50%;
  background: #fff;
}

/* Floating FAB */
.tref-story-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #137df7, #0f6bc8);
  color: #fff;
  font:
    600 14px/1 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  box-shadow: 0 10px 30px rgba(19, 125, 247, 0.45);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tref-story-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(19, 125, 247, 0.55);
}
.tref-fab-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font: 700 16px/1 sans-serif;
}

/* Modal */
.tref-modal-bd {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.tref-modal-bd.is-open {
  opacity: 1;
}
.tref-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}
.tref-modal-bd.is-open .tref-modal {
  transform: none;
}
.tref-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.tref-modal-head h3 {
  margin: 0;
  font:
    600 16px/1.3 system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: #111;
}
.tref-modal-x {
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
  border-radius: 6px;
}
.tref-modal-x:hover {
  background: #f3f5f9;
}
.tref-modal-body {
  padding: 18px 20px 22px;
}
.tref-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.tref-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  font:
    600 14px/1 system-ui,
    sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.tref-btn-primary {
  background: linear-gradient(135deg, #137df7, #0f6bc8);
  color: #fff;
}
.tref-btn-primary:hover {
  filter: brightness(1.05);
}
.tref-btn-ghost {
  background: #eef2f7;
  color: #333;
}

/* Tabs */
.tref-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 14px;
  overflow-x: auto;
}
.tref-tab {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font:
    500 13px/1 system-ui,
    sans-serif;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
}
.tref-tab.is-active {
  background: #137df7;
  color: #fff;
}

/* Templates */
.tref-templates {
  margin-bottom: 14px;
}
.tref-tpl-label {
  font:
    600 12px/1 system-ui,
    sans-serif;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.tref-tpl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tref-tpl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  background: #fafbfd;
  cursor: pointer;
  font:
    500 12px/1.2 system-ui,
    sans-serif;
  color: #333;
}
.tref-tpl:hover {
  border-color: #137df7;
  background: #f0f6ff;
}
.tref-tpl-emoji {
  font-size: 20px;
}

/* Composer fields */
.tref-input,
.tref-pane select,
.tref-pane input[type='datetime-local'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  font:
    14px/1.4 system-ui,
    sans-serif;
  margin-bottom: 8px;
  background: #fff;
  color: #111;
}
.tref-input:focus {
  outline: none;
  border-color: #137df7;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.18);
}
.tref-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.tref-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font:
    600 12px/1 system-ui,
    sans-serif;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tref-field select,
.tref-field input {
  margin-bottom: 0;
  text-transform: none;
}
.tref-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  border: 2px dashed #c5cfdc;
  border-radius: 10px;
  color: #666;
  font:
    500 14px/1.3 system-ui,
    sans-serif;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s ease;
}
.tref-drop span {
  color: #137df7;
  text-decoration: underline;
  margin-left: 4px;
}
.tref-drop.is-drag {
  border-color: #137df7;
  background-color: #eef6ff;
}
.tref-drop.has-img {
  color: transparent;
  border-style: solid;
  border-color: transparent;
}
.tref-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tref-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.tref-swatch.is-active {
  border-color: #111;
  box-shadow: 0 0 0 2px #fff inset;
}

/* Preview */
.tref-preview-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.tref-preview {
  width: 180px;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Slide content */
.tref-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
}
.tref-slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.tref-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.tref-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font:
    500 14px/1.3 system-ui,
    sans-serif;
}
.tref-slide-inner {
  padding: 24px;
  text-align: center;
  max-width: 90%;
}
.tref-slide-inner h2 {
  margin: 0 0 10px;
  font:
    800 28px/1.05 system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.tref-slide-inner p {
  margin: 0 0 12px;
  font:
    500 16px/1.35 system-ui,
    sans-serif;
  opacity: 0.95;
}
.tref-slide-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  font:
    600 13px/1 system-ui,
    sans-serif;
}
.tref-slide-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  font:
    700 10px/1 system-ui,
    sans-serif;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* Picker */
.tref-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
  cursor: pointer;
  font:
    500 14px/1 system-ui,
    sans-serif;
  text-align: left;
}
.tref-picker-row:hover {
  border-color: #137df7;
  background: #f6faff;
}
.tref-picker-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

/* Upsell */
.tref-upsell {
  text-align: center;
  padding: 16px 6px;
}
.tref-upsell-icon {
  font-size: 42px;
  margin-bottom: 8px;
}
.tref-upsell h4 {
  margin: 0 0 8px;
  font:
    700 18px/1.2 system-ui,
    sans-serif;
  color: #111;
}
.tref-upsell p {
  margin: 0 0 16px;
  color: #555;
  font:
    14px/1.5 system-ui,
    sans-serif;
}

/* Toast */
.tref-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font:
    500 13px/1 system-ui,
    sans-serif;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 10001;
}
.tref-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Viewer */
.tref-viewer {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-viewer-stage {
  position: relative;
  width: min(100vw, 420px);
  height: min(100vh, 90vh);
  max-height: 100vh;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .tref-viewer-stage {
    border-radius: 18px;
    height: min(92vh, 820px);
  }
}
.tref-viewer-bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 6;
}
.tref-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.tref-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.tref-viewer-head {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  color: #fff;
}
.tref-viewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.tref-viewer-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  font:
    600 13px/1.2 system-ui,
    sans-serif;
}
.tref-viewer-meta .tref-viewer-time {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.75;
}
.tref-viewer-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.tref-viewer-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-viewer-body .tref-slide {
  height: 100%;
}
.tref-viewer-body .tref-slide-inner h2 {
  font-size: 34px;
}
.tref-viewer-body .tref-slide-inner p {
  font-size: 18px;
}
.tref-viewer-tap-left,
.tref-viewer-tap-right {
  position: absolute;
  top: 60px;
  bottom: 80px;
  width: 35%;
  z-index: 2;
  cursor: pointer;
}
.tref-viewer-tap-left {
  left: 0;
}
.tref-viewer-tap-right {
  right: 0;
}
.tref-viewer-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.tref-reactions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.tref-reactions button {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 0;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.tref-reactions button:hover {
  background: rgba(255, 255, 255, 0.3);
}
.tref-reactions button.is-pop {
  transform: scale(1.35);
}
.tref-viewer-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font:
    500 12px/1.3 system-ui,
    sans-serif;
  opacity: 0.9;
  gap: 10px;
  flex-wrap: wrap;
}
.tref-stat-del {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 640px) {
  .tref-modal {
    border-radius: 14px 14px 0 0;
    align-self: flex-end;
    max-height: 92vh;
  }
  .tref-modal-bd {
    align-items: flex-end;
    padding: 0;
  }
  .tref-tpl-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .tref-story-fab {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px 10px 10px;
  }
}

/* TREF STORIES OVERLAY v2 - clean light blue */
.tref-story-overlay {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  z-index: 9;
  background: transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: none;
  box-sizing: border-box;
}
.tref-story-overlay.has-story {
  display: block;
  border: 3px solid #4aa6ff;
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 8px rgba(74, 166, 255, 0.45);
}
.tref-story-overlay.has-story:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 12px rgba(74, 166, 255, 0.7);
}
.tref-story-overlay.is-owner:not(.has-story) {
  display: block;
  border: 2px dashed #4aa6ff;
  opacity: 0.7;
}
.tref-story-overlay.is-owner:not(.has-story):hover {
  opacity: 1;
}

/* Add Status link on My Account listing rows */
.tref-account-add-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 13px;
  color: #137df7;
  text-decoration: none;
  border: 1px solid #cfe4ff;
  border-radius: 14px;
  background: #f4faff;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.tref-account-add-status:hover {
  background: #137df7;
  color: #fff;
  border-color: #137df7;
  text-decoration: none;
}
.tref-account-add-status .tref-as-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4aa6ff;
  display: inline-block;
}
.tref-account-add-status:hover .tref-as-dot {
  background: #fff;
}
/* TREF STORIES - dashboard tile + buttons */
.sub-list-item.tref-status-tile {
  position: relative;
}
.sub-list-item.tref-status-tile .item-title i {
  color: #137df7;
}
.sub-list-item.tref-status-tile .tref-add-status-link {
  color: #137df7;
  font-weight: 600;
  text-decoration: none;
}
.sub-list-item.tref-status-tile .tref-add-status-link:hover {
  color: #0f6bc8;
  text-decoration: underline;
}
.sub-list-item.tref-status-tile .item-footer {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.sub-list-item.tref-status-tile .item-footer .count {
  min-width: 0;
}
.sub-list-item.tref-status-tile .item-footer .tref-add-status-link {
  white-space: nowrap;
  margin-left: auto;
  padding-left: 0;
}
.sub-list-item.tref-status-tile::after {
  content: 'NEW';
  position: absolute;
  top: -6px;
  right: -6px;
  background: #4aa6ff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* TREF STORIES - prominent top pill next to Your subscription h2 */
.tref-add-status-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #137df7;
  border-radius: 20px;
  text-decoration: none;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(19, 125, 247, 0.3);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tref-add-status-top-pill:hover {
  background: #0f6bc8;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(19, 125, 247, 0.4);
}
.tref-add-status-top-pill i {
  font-size: 12px;
}
.tref-add-status-top-pill .tref-pill-new {
  background: #fff;
  color: #137df7;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.tref-add-status-footer-btn:hover {
  background: #0f6bc8 !important;
  border-color: #0f6bc8 !important;
}

/* -- TREF STORIES v8: Ring badge, Viewer foot redesign, Replies, Composer brand -- */
/* Ring badge (view count) */
.tref-story-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}
.tref-ring-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #137df7;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Viewer head actions (close + delete) */
.tref-viewer-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.tref-viewer-del-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  transition: background 0.15s ease;
}
.tref-viewer-del-btn:hover {
  background: rgba(220, 50, 50, 0.7);
  border-color: rgba(220, 50, 50, 0.8);
}

/* Viewer footer: top row (reactions + views) */
.tref-viewer-foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 4px;
}
.tref-views-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Replies panel */
.tref-replies-panel {
  padding: 0 14px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.tref-replies-toggle {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tref-replies-toggle:hover {
  color: #fff;
}
.tref-toggle-arr {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
}
.tref-replies-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.tref-no-replies {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin: 4px 0 8px;
  text-align: center;
}
.tref-reply-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tref-reply-author {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.tref-reply-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  flex: 1;
  word-break: break-word;
}
.tref-reply-time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  flex-shrink: 0;
}
.tref-reply-del {
  background: none;
  border: 0;
  color: rgba(255, 100, 100, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.tref-reply-del:hover {
  color: #ff6464;
}

/* Reply form */
.tref-reply-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.tref-reply-name {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.tref-reply-name::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.tref-reply-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.tref-reply-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  box-sizing: border-box;
}
.tref-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.tref-reply-input:focus,
.tref-reply-name:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
}
.tref-reply-submit {
  background: #137df7;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.tref-reply-submit:hover {
  background: #0f6bc8;
}

/* Composer brand header */
.tref-composer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 4px;
}
.tref-composer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef1f5;
  flex-shrink: 0;
}
.tref-composer-biz-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tref-composer-biz-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a2332;
}
.tref-composer-biz-sub {
  font-size: 12px;
  color: #8a96a8;
}

/* Character counter */
.tref-char-counter {
  font-size: 11px;
  color: #aab4c0;
  text-align: right;
  margin-top: -6px;
  margin-bottom: 4px;
}
.tref-char-counter .tref-char-used {
  font-weight: 600;
}
.tref-char-counter.is-near {
  color: #e8a020;
}
.tref-char-counter.is-full {
  color: #e03c3c;
}

/* Owner stats row (reactions only now) */
.tref-stat-reacts {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  display: flex;
  gap: 8px;
}

/* ----------------------------------------------------------
   TREF Stories � Detail-page hero profile (Instagram-style)
   Always-clickable ring around the listing detail logo.
   ---------------------------------------------------------- */
.tref-story-overlay.is-detail {
  border-radius: 50% !important;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tref-story-overlay.is-detail.is-empty {
  /* Subtle dashed ring when no stories yet � hints it is clickable */
  border: 2px dashed rgba(19, 125, 247, 0.45) !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}
.tref-story-overlay.is-detail.is-empty:hover {
  border-color: rgba(19, 125, 247, 0.9) !important;
  transform: scale(1.02);
}
.tref-story-overlay.is-detail.has-story {
  /* Stronger ring on detail pages */
  border-width: 3px !important;
}
.tref-story-overlay.is-detail.has-story:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(255, 64, 129, 0.35);
}
/* Seen-state: grey ring once the user has watched all stories (like Instagram) */
.tref-story-overlay.has-story.is-all-seen {
  border-color: #b0b8c1 !important;
  box-shadow: 0 0 0 2px #fff inset !important;
  opacity: 0.65;
}
.tref-story-overlay.has-story.is-all-seen:hover {
  opacity: 1;
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px #fff inset,
    0 0 8px rgba(176, 184, 193, 0.5) !important;
}
/* New/unread indicator pulse on the ring � draws the eye to unseen stories */
@keyframes tref-ring-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px #fff inset,
      0 0 8px rgba(74, 166, 255, 0.45);
  }
  50% {
    box-shadow:
      0 0 0 2px #fff inset,
      0 0 14px rgba(74, 166, 255, 0.9);
  }
}
.tref-story-overlay.has-story:not(.is-all-seen) {
  animation: tref-ring-pulse 2.4s ease-in-out infinite;
}

/* Empty-state viewer (when user clicks profile but no stories exist) */
.tref-viewer.tref-viewer-empty .tref-empty-body {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 32px;
  flex: 1 1 auto;
  min-height: 0;
}
.tref-viewer.tref-viewer-empty .tref-empty-card {
  text-align: center;
  color: #fff;
  max-width: 320px;
}
.tref-viewer.tref-viewer-empty .tref-empty-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 18px;
  opacity: 0.85;
}
.tref-viewer.tref-viewer-empty .tref-empty-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}
.tref-viewer.tref-viewer-empty .tref-empty-card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
}
.tref-viewer.tref-viewer-empty .tref-empty-hint {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 20px !important;
}
.tref-viewer.tref-viewer-empty .tref-empty-cta {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #137df7, #0f6bc8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 8px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tref-viewer.tref-viewer-empty .tref-empty-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(19, 125, 247, 0.45);
}

/* --------------------------------------------------------------
   TREF Stories � Sponsor Dashboard Panel  (v13)
   Professional management UI: active stories, replies, delete,
   older/expired stories in a collapsible accordion.
   -------------------------------------------------------------- */

/* Panel wrapper */
.tref-dash-panel {
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin: 24px 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header bar */
.tref-dp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f1c2e 0%, #1a3150 100%);
  color: #fff;
}
.tref-dp-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.tref-dp-title {
  flex: 1;
  min-width: 0;
}
.tref-dp-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.tref-dp-biz {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tref-dp-header-stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.tref-dp-hstat {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tref-dp-hstat strong {
  color: #fff;
  font-weight: 700;
}

/* Add Story button */
.tref-dp-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #137df7;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}
.tref-dp-add-btn:hover {
  background: #0f6bc8;
  transform: translateY(-1px);
}
.tref-dp-plus {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

/* Body */
.tref-dp-body {
  padding: 16px 20px;
}

/* Section labels */
.tref-dp-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8a96a8;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tref-dp-count {
  background: #137df7;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Story card list */
.tref-dp-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* Individual story card */
.tref-sc {
  display: flex;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
  transition: box-shadow 0.15s ease;
}
.tref-sc:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.tref-sc-expired {
  opacity: 0.65;
}
.tref-sc-expired:hover {
  opacity: 1;
}

/* Coloured left stripe (reflects story background) */
.tref-sc-stripe {
  width: 48px;
  min-height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-sc-kind {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Card body */
.tref-sc-body {
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
}
.tref-sc-row1 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 2px;
}
.tref-sc-headline {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1a2332;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tref-sc-del {
  background: none;
  border: 1px solid #f0d0d0;
  border-radius: 6px;
  color: #c0392b;
  font-size: 13px;
  cursor: pointer;
  padding: 1px 7px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.tref-sc-del:hover {
  background: #ffeaea;
  border-color: #c0392b;
}

.tref-sc-sub {
  font-size: 12px;
  color: #6b7a8d;
  margin-bottom: 4px;
}
.tref-sc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 8px;
}
.tref-sc-time {
  font-size: 11px;
  color: #8a96a8;
}
.tref-sc-ttl {
  font-size: 11px;
  color: #27ae60;
  font-weight: 600;
  background: #e9f7ef;
  border-radius: 10px;
  padding: 1px 7px;
}
.tref-sc-ttl.is-expired {
  color: #7f8c8d;
  background: #f0f0f0;
}
.tref-sc-views,
.tref-sc-reactions {
  font-size: 12px;
  color: #5a6270;
}
.tref-sc-rx {
  margin-right: 4px;
}

/* Replies toggle */
.tref-sc-reply-toggle {
  background: none;
  border: 1px solid #dde3ec;
  border-radius: 6px;
  color: #5a6270;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 10px;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
.tref-sc-reply-toggle:hover {
  background: #f0f4ff;
  border-color: #137df7;
  color: #137df7;
}
.tref-sc-arr {
  font-size: 10px;
  margin-left: 3px;
}

/* Inline replies list */
.tref-sc-replies {
  margin-top: 8px;
  border-top: 1px solid #eef1f5;
  padding-top: 8px;
}
.tref-sc-no-replies {
  color: #aab4c0;
  font-size: 12px;
  margin: 0;
}
.tref-sc-reply-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f4f6f8;
  font-size: 13px;
}
.tref-sc-reply-row:last-child {
  border-bottom: none;
}
.tref-sc-reply-name {
  font-weight: 700;
  color: #1a2332;
  flex-shrink: 0;
}
.tref-sc-reply-text {
  color: #4a5568;
  flex: 1;
  word-break: break-word;
}
.tref-sc-reply-time {
  color: #aab4c0;
  font-size: 11px;
  flex-shrink: 0;
}
.tref-sc-del-reply {
  background: none;
  border: none;
  color: rgba(200, 50, 50, 0.6);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.tref-sc-del-reply:hover {
  color: #c0392b;
}

/* Older/expired accordion */
.tref-dp-older-wrap {
  margin-top: 4px;
}
.tref-dp-older-toggle {
  background: none;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  color: #6b7a8d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  width: 100%;
  text-align: left;
  transition: background 0.12s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tref-dp-older-toggle:hover {
  background: #f5f7fa;
  border-color: #b0b8c8;
}
.tref-dp-older-arr {
  font-size: 11px;
}
.tref-dp-older-list {
  padding-top: 12px;
}

/* Empty state */
.tref-dp-empty {
  text-align: center;
  padding: 32px 20px;
  color: #6b7a8d;
}
.tref-dp-empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.tref-dp-empty strong {
  display: block;
  font-size: 15px;
  color: #1a2332;
  margin-bottom: 6px;
}
.tref-dp-empty p {
  font-size: 13px;
  margin: 0;
}

/* Responsive: stack header on small screens */
@media (max-width: 600px) {
  .tref-dp-header {
    flex-wrap: wrap;
  }
  .tref-dp-header-stats {
    display: none;
  }
  .tref-dp-add-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* -- Activity Feed (v15) -------------------------------------- */
.tref-dp-activity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 6px;
  background: #f4f6f9;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  overflow: hidden;
}
.tref-dp-act-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #f0f3f7;
  transition: background 0.12s;
}
.tref-dp-act-row:last-child {
  border-bottom: none;
}
.tref-dp-act-row:hover {
  background: #f8faff;
}
.tref-dp-act-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.tref-dp-act-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}
.tref-dp-act-name {
  font-weight: 700;
  color: #1a2332;
}
.tref-dp-act-text {
  color: #4a5568;
  font-style: italic;
}
.tref-dp-act-on {
  font-size: 11px;
  color: #8a96a8;
  margin-top: 2px;
}
.tref-dp-act-time {
  font-size: 11px;
  color: #aab4c0;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* -- Engagement score badge ----------------------------------- */
.tref-sc-eng {
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 4px;
}
.tref-sc-eng.is-hot {
  background: #fff3e0;
  color: #e65100;
}
.tref-sc-eng.is-good {
  background: #e8f5e9;
  color: #2e7d32;
}

/* -- Reaction pills row --------------------------------------- */
.tref-sc-rx-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tref-sc-rx-pill {
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #f0f3f7;
  color: #8a96a8;
  border: 1px solid transparent;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.tref-sc-rx-pill.is-active {
  background: #fff8e1;
  border-color: #ffd54f;
  color: #5a4a00;
}
.tref-sc-rx-pill.is-active strong {
  font-weight: 700;
  color: #333;
}

/* -- Last reply preview --------------------------------------- */
.tref-sc-last-reply {
  font-size: 12px;
  color: #5a6270;
  background: #f5f7fa;
  border-left: 3px solid #137df7;
  border-radius: 0 6px 6px 0;
  padding: 5px 10px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tref-sc-last-reply strong {
  color: #1a2332;
}

/* -- v19: Public viewer like + reply form -- */
.tref-vf-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}
.tref-like-btn,
.tref-reply-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  font:
    600 14px/1 system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s;
  user-select: none;
}
.tref-like-btn:hover,
.tref-reply-open-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}
.tref-like-btn.is-liked {
  background: rgba(220, 38, 38, 0.65);
  border-color: #f87171;
  color: #fff;
}
.tref-like-btn.is-pop,
.tref-reply-open-btn.is-pop {
  transform: scale(1.22);
}
.tref-like-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s;
}
.tref-like-btn.is-liked .tref-like-icon {
  transform: scale(1.25);
}
.tref-vf-form {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 14px 10px;
  margin-top: 4px;
}
.tref-vf-fields {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.tref-vf-name,
.tref-vf-email {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font:
    400 13px/1 system-ui,
    sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.tref-vf-name::placeholder,
.tref-vf-email::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.tref-vf-name:focus,
.tref-vf-email:focus {
  border-color: rgba(255, 255, 255, 0.7);
}
.tref-vf-name.tref-vf-err,
.tref-vf-email.tref-vf-err,
.tref-vf-text.tref-vf-err {
  border-color: #f87171;
  animation: tref-shake 0.3s;
}
.tref-vf-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.tref-vf-text {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font:
    400 13px/1.4 system-ui,
    sans-serif;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.tref-vf-text::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.tref-vf-text:focus {
  border-color: rgba(255, 255, 255, 0.7);
}
.tref-vf-submit {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #137df7;
  color: #fff;
  font:
    600 13px/1 system-ui,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.15s;
}
.tref-vf-submit:hover {
  background: #0f6bc8;
  transform: scale(1.04);
}
.tref-vf-confirm {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(22, 163, 74, 0.4);
  color: #bbf7d0;
  font:
    500 13px/1.3 system-ui,
    sans-serif;
  text-align: center;
}
@keyframes tref-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* dashboard email tags */
.tref-sc-reply-email {
  display: inline-block;
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  margin: 0 4px;
}
.tref-dp-act-email {
  display: inline-block;
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #60a5fa;
  margin-left: 4px;
}

/* -- v20: Dashboard redesign -- */
/* Stat tiles */
.tref-dp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: #f8faff;
  border-bottom: 1px solid #e9eef6;
}
.tref-dp-stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #e9eef6;
  gap: 6px;
  transition: border-color 0.2s;
  min-height: 64px;
}
.tref-dp-stat-tile.is-live {
  border-color: #22c55e;
  background: #f0fdf4;
}
.tref-dp-stat-tile.is-likes {
  border-color: #f87171;
  background: #fff7f7;
}
.tref-dp-stat-tile.is-replies {
  border-color: #60a5fa;
  background: #f0f8ff;
}
.tref-dp-stat-val {
  font:
    700 22px/1.2 system-ui,
    sans-serif;
  color: #111;
  padding-top: 2px;
}
.tref-dp-stat-tile.is-live .tref-dp-stat-val {
  color: #16a34a;
}
.tref-dp-stat-tile.is-likes .tref-dp-stat-val {
  color: #dc2626;
}
.tref-dp-stat-tile.is-replies .tref-dp-stat-val {
  color: #2563eb;
}
.tref-dp-stat-lbl {
  font:
    500 11px/1.2 system-ui,
    sans-serif;
  color: #6b7280;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

/* Header: logo placeholder + add button */
.tref-dp-logo-ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #137df7, #0f6bc8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tref-dp-add-btn {
  margin-left: auto;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: #137df7;
  color: #fff;
  font:
    600 13px/1 system-ui,
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.tref-dp-add-btn:hover {
  background: #0f6bc8;
}

/* Section label with inline button */
.tref-dp-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    600 12px/1 system-ui,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  padding: 12px 0 6px;
}
.tref-inbox-label {
  border-top: 1px solid #e9eef6;
  padding-top: 16px;
  margin-top: 8px;
}
.tref-inbox-csv-btn {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font:
    500 11px/1 system-ui,
    sans-serif;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}
.tref-inbox-csv-btn:hover {
  background: #f3f4f6;
}

/* Story card: TTL progress row */
.tref-sc-prog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 4px;
}
.tref-sc-ttl-txt {
  font:
    500 12px/1 system-ui,
    sans-serif;
  color: #374151;
  white-space: nowrap;
  min-width: 60px;
}
.tref-sc-ttl-txt.is-expired {
  color: #9ca3af;
}
.tref-sc-urgent {
  font:
    600 11px/1 system-ui,
    sans-serif;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.tref-sc-prog-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.tref-sc-prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Story card: stats row */
.tref-sc-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 6px;
  flex-wrap: wrap;
}
.tref-sc-stat {
  font:
    500 12px/1 system-ui,
    sans-serif;
  color: #6b7280;
}
.tref-sc-stat.is-active {
  color: #111;
  font-weight: 600;
}
.tref-sc-created {
  margin-left: auto;
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #9ca3af;
}

/* Story card: row1 right-side layout */
.tref-sc-row1 {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: space-between;
}
.tref-sc-row1-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Story card: reply toggle empty state */
.tref-sc-reply-toggle.is-empty {
  color: #9ca3af;
  cursor: default;
}

/* Story card: expanded reply rows */
.tref-sc-replies {
  margin-top: 6px;
  border-top: 1px solid #f0f0f0;
  padding-top: 6px;
}
.tref-sc-reply-row {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.tref-sc-reply-row:last-child {
  border-bottom: none;
}
.tref-sc-reply-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.tref-sc-reply-name {
  font:
    600 12px/1 system-ui,
    sans-serif;
  color: #111;
}
.tref-sc-reply-email {
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  text-decoration: none;
}
.tref-sc-reply-email:hover {
  text-decoration: underline;
}
.tref-sc-reply-time {
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #9ca3af;
  margin-left: auto;
}
.tref-sc-del-reply {
  padding: 1px 7px;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  background: #fff;
  color: #ef4444;
  font:
    500 11px/1 system-ui,
    sans-serif;
  cursor: pointer;
}
.tref-sc-reply-body {
  font:
    400 13px/1.45 system-ui,
    sans-serif;
  color: #374151;
  padding: 0 2px;
}

/* Replies Inbox list */
.tref-inbox-list {
  border: 1px solid #e9eef6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tref-inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4fa;
  background: #fff;
  transition: background 0.15s;
}
.tref-inbox-row:last-child {
  border-bottom: none;
}
.tref-inbox-row:hover {
  background: #f8faff;
}
.tref-inbox-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #137df7, #6366f1);
  color: #fff;
  font:
    700 14px/36px system-ui,
    sans-serif;
  text-align: center;
  flex-shrink: 0;
}
.tref-inbox-content {
  flex: 1;
  min-width: 0;
}
.tref-inbox-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.tref-inbox-name {
  font:
    600 13px/1 system-ui,
    sans-serif;
  color: #111;
}
.tref-inbox-email {
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #2563eb;
  text-decoration: none;
}
.tref-inbox-email:hover {
  text-decoration: underline;
}
.tref-inbox-no-email {
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #9ca3af;
  font-style: italic;
}
.tref-inbox-time {
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #9ca3af;
  margin-left: auto;
}
.tref-inbox-msg {
  font:
    400 13px/1.5 system-ui,
    sans-serif;
  color: #374151;
  margin-bottom: 3px;
  word-break: break-word;
}
.tref-inbox-re {
  font:
    400 11px/1 system-ui,
    sans-serif;
  color: #6b7280;
  font-style: italic;
}
.tref-inbox-del {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #fff;
  color: #ef4444;
  font:
    500 12px/1 system-ui,
    sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.tref-inbox-del:hover {
  background: #fee2e2;
}

/* Expired section header */
.tref-dp-older-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
  border-top: 1px solid #e9eef6;
  margin-top: 8px;
}
.tref-dp-older-toggle {
  background: none;
  border: none;
  font:
    500 13px/1 system-ui,
    sans-serif;
  color: #374151;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tref-dp-clear-expired {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #fff;
  color: #ef4444;
  font:
    500 11px/1 system-ui,
    sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.tref-dp-clear-expired:hover {
  background: #fee2e2;
}

/* -- v21: Status toolbar + modal sheet -- */
.tref-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid #e2e7ef;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.tref-tb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tref-tb-bolt {
  font-size: 20px;
  line-height: 1;
}
.tref-tb-label {
  font:
    700 14px/1 system-ui,
    sans-serif;
  color: #111;
  margin-right: 2px;
}
.tref-tb-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tref-tb-chip {
  font:
    500 12px/1 system-ui,
    sans-serif;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tref-tb-chip.is-live {
  background: #dcfce7;
  color: #16a34a;
  font-weight: 700;
}
.tref-tb-chip.is-likes {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 700;
}
.tref-tb-chip.is-replies {
  background: #dbeafe;
  color: #2563eb;
  font-weight: 700;
}
.tref-tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tref-tb-report {
  padding: 7px 14px;
  border: 1.5px solid #e2e7ef;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font:
    600 13px/1 system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tref-tb-report:hover {
  border-color: #137df7;
  color: #137df7;
}
.tref-tb-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: #137df7;
  color: #fff;
  font:
    600 13px/1 system-ui,
    sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.tref-tb-add:hover {
  background: #0f6bc8;
}

/* Category page live-status badge */
.tref-live-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font:
    700 11px/1 system-ui,
    sans-serif;
  letter-spacing: 0.3px;
  pointer-events: none;
  z-index: 3;
  text-transform: uppercase;
}
.tref-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: tref-pulse 1.6s ease infinite;
  flex-shrink: 0;
}
@keyframes tref-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Modal overlay */
.tref-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 19999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  box-sizing: border-box;
  overflow: hidden;
}
.tref-modal-overlay[hidden] {
  display: none !important;
}
.tref-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #f5f7fb;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: tref-sheet-up 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tref-modal-handle {
  width: 40px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 12px auto 0;
}
.tref-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #374151;
  font:
    600 17px/30px system-ui,
    sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 5;
}
.tref-modal-close:hover {
  background: rgba(0, 0, 0, 0.18);
}
@keyframes tref-sheet-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
body.tref-modal-open {
  overflow: hidden;
}

/* Mobile: behave like a bottom sheet that fills the screen */
@media (max-width: 600px) {
  .tref-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .tref-modal-sheet {
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }
}

/* Dashboard panel inside modal: remove outer border/radius since modal handles it */
.tref-modal-sheet .tref-dash-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-top: 8px;
}

/* -- v21b: FAB ? Status Report -- */
.tref-fab-icon {
  font-size: 16px;
  line-height: 1;
}

/* -- v24: composer textarea -- */
.tref-textarea {
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
  font-family: inherit;
}

/* -- v27: story card mini-preview -- */
.tref-sc-preview {
  width: 72px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  min-height: 110px;
  align-self: stretch;
}
.tref-sc-preview-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 360px;
  transform: scale(0.3);
  transform-origin: top left;
  pointer-events: none;
}

/* -- v29: story link button in viewer footer -- */
.tref-vf-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid #137df7;
  border-radius: 999px;
  background: #fff;
  color: #137df7;
  font:
    600 13px/1 system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.tref-vf-link-btn:hover {
  background: #137df7;
  color: #fff;
}
.tref-link-input {
  margin-top: 8px;
}

/* -- v30: CTA link clickable above tap zones -- */
.tref-viewer-body {
  pointer-events: none;
  z-index: 3;
  position: absolute;
}
.tref-viewer-body .tref-slide-cta,
.tref-viewer-body .tref-slide-cta-img {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

/* ----------------------------------------------------------------------------
   TREF Composer � v36 polish (2026-06-23): premium composer styling, prominent
   link input, gradient buttons, smoother tab switching, sticky bottom action bar.
   ---------------------------------------------------------------------------- */

/* Composer modal sizing */
.tref-modal.tref-composer {
  max-width: 600px;
  border-radius: 18px;
  box-shadow:
    0 32px 80px rgba(15, 30, 60, 0.25),
    0 0 0 1px rgba(20, 40, 80, 0.04);
}
.tref-modal.tref-composer .tref-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid #eef1f7;
}
.tref-modal.tref-composer .tref-modal-head h3 {
  font:
    700 17px/1.25 system-ui,
    sans-serif;
  color: #0f1a2e;
}
.tref-modal.tref-composer .tref-modal-body {
  padding: 18px 22px 100px;
  background: #fafbfd;
}

/* Brand bar (logo + name) at top of composer */
.tref-composer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(15, 30, 60, 0.02);
}
.tref-composer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
  border: 1px solid #e6ebf2;
  flex: 0 0 42px;
}
.tref-composer-biz-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.tref-composer-biz-name {
  font:
    700 14px/1.2 system-ui,
    sans-serif;
  color: #0f1a2e;
}
.tref-composer-biz-sub {
  font:
    500 12px/1.2 system-ui,
    sans-serif;
  color: #7a869a;
  margin-top: 2px;
}

/* Tabs � pill style */
.tref-composer .tref-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #eef2f7;
  border: 0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.tref-composer .tref-tab {
  flex: 1;
  background: transparent;
  color: #475569;
  border-radius: 8px;
  padding: 9px 6px;
  font:
    600 13px/1 system-ui,
    sans-serif;
  transition: all 0.15s ease;
}
.tref-composer .tref-tab:hover {
  background: rgba(255, 255, 255, 0.6);
}
.tref-composer .tref-tab.is-active {
  background: #fff;
  color: #0f1a2e;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.08);
}

/* Quick template tiles � bigger, friendlier */
.tref-composer .tref-templates {
  margin-bottom: 18px;
}
.tref-composer .tref-tpl-label {
  font:
    700 11px/1 system-ui,
    sans-serif;
  color: #7a869a;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.tref-composer .tref-tpl-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tref-composer .tref-tpl {
  padding: 14px 8px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  transition: all 0.15s ease;
  gap: 6px;
}
.tref-composer .tref-tpl:hover {
  border-color: #137df7;
  background: #f4f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(19, 125, 247, 0.12);
}
.tref-composer .tref-tpl-emoji {
  font-size: 24px;
}

/* Inputs in panes � white cards on the gray bg */
.tref-composer .tref-pane {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.tref-composer .tref-input {
  margin-bottom: 10px;
  border: 1px solid #d8dee7;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff;
  font:
    14px/1.4 system-ui,
    sans-serif;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.tref-composer .tref-input:focus {
  border-color: #137df7;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.15);
}
.tref-composer .tref-input:last-child {
  margin-bottom: 0;
}

/* Prominent LINK input � clearly labelled, with icon, bigger */
.tref-composer .tref-link-block {
  margin-top: 10px;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border: 1px solid #c7dbf5;
  border-radius: 11px;
}
.tref-composer .tref-link-block-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font:
    700 12px/1 system-ui,
    sans-serif;
  color: #0a4ea3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}
.tref-composer .tref-link-block-label .tref-link-icon {
  font-size: 14px;
}
.tref-composer .tref-link-block-hint {
  font:
    500 11px/1.35 system-ui,
    sans-serif;
  color: #5a6a82;
  margin-top: 4px;
}
.tref-composer .tref-link-input {
  margin-bottom: 0;
  border: 1px solid #b8d0ed;
  background: #fff;
  padding-left: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23137df7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/><path d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/></svg>");
  background-repeat: no-repeat;
  background-position: 11px 50%;
}
.tref-composer .tref-link-input:focus {
  border-color: #137df7;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.15);
}

/* Drop zone � friendlier */
.tref-composer .tref-drop {
  height: 170px;
  border: 2px dashed #c5d1e3;
  border-radius: 11px;
  background: #fafbfd;
  color: #5a6a82;
  font:
    600 14px/1.3 system-ui,
    sans-serif;
}
.tref-composer .tref-drop:hover {
  border-color: #137df7;
  background: #f4f9ff;
}
.tref-composer .tref-drop.is-drag {
  border-color: #137df7;
  background: #e7f0ff;
  color: #137df7;
}

/* Char counter */
.tref-char-counter {
  font:
    500 11px/1 system-ui,
    sans-serif;
  color: #9aa6b8;
  text-align: right;
  margin-top: -4px;
  margin-bottom: 8px;
}
.tref-char-counter.is-near {
  color: #d68a14;
}
.tref-char-counter.is-full {
  color: #d04545;
}

/* Row with duration + schedule */
.tref-composer .tref-row {
  margin-top: 0;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 12px;
  gap: 12px;
}
.tref-composer .tref-field > span {
  font:
    700 11px/1 system-ui,
    sans-serif;
  color: #5a6a82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.tref-composer .tref-field select,
.tref-composer .tref-field input {
  margin-bottom: 0;
  border: 1px solid #d8dee7;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  font:
    14px/1.4 system-ui,
    sans-serif;
}

/* Preview � phone-like frame */
.tref-composer .tref-preview-wrap {
  margin: 18px 0 0;
  justify-content: center;
}
.tref-composer .tref-preview {
  width: 200px;
  height: 355px;
  border-radius: 24px;
  border: 6px solid #1a1d24;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px #2a2f3a;
}

/* Sticky action bar at bottom */
.tref-composer .tref-modal-actions {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 18px -22px -22px;
  padding: 14px 22px;
  background: #fff;
  border-top: 1px solid #e6ebf2;
  border-radius: 0 0 18px 18px;
  justify-content: space-between;
  box-shadow: 0 -4px 14px rgba(15, 30, 60, 0.05);
}

/* Polished buttons */
.tref-composer .tref-btn {
  padding: 11px 22px;
  border-radius: 10px;
  font:
    700 14px/1 system-ui,
    sans-serif;
  transition:
    transform 0.08s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}
.tref-composer .tref-btn:active {
  transform: translateY(1px);
}
.tref-composer .tref-btn-primary {
  background: linear-gradient(135deg, #137df7 0%, #0b5fc1 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(19, 125, 247, 0.32);
  padding-left: 28px;
  padding-right: 28px;
}
.tref-composer .tref-btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(19, 125, 247, 0.4);
}
.tref-composer .tref-btn-primary::before {
  content: '\1F680';
  margin-right: 6px;
  font-size: 14px;
}
.tref-composer .tref-btn-ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #d8dee7;
}
.tref-composer .tref-btn-ghost:hover {
  background: #f4f6fa;
  border-color: #b8c2d1;
}

/* Swatches � bigger, prettier */
.tref-composer .tref-swatches {
  margin-top: 8px;
  gap: 10px;
}
.tref-composer .tref-swatch {
  width: 38px;
  height: 38px;
  border: 3px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease;
}
.tref-composer .tref-swatch:hover {
  transform: scale(1.08);
}
.tref-composer .tref-swatch.is-active {
  border-color: #0f1a2e;
  transform: scale(1.06);
}

/* Subtle global busy indicator while API requests are in flight */
html.tref-api-busy::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #137df7, transparent);
  background-size: 200% 100%;
  animation: trefBusySlide 1.2s linear infinite;
  z-index: 10002;
  pointer-events: none;
}
@keyframes trefBusySlide {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 480px) {
  .tref-composer .tref-tpl-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .tref-composer .tref-preview {
    width: 180px;
    height: 320px;
  }
}

/* ============================================
   Contact Us Page Redesign
   ============================================ */

.contactus-block {
  background: #f1f5f9;
  padding: 5rem 0;
  min-height: 70vh;
}

.contactus-block > .container {
  max-width: 1040px;
}

.contactus-block > .container > .wrapper {
  display: flex;
  flex-flow: row nowrap;
  gap: 2.5rem;
  align-items: flex-start;
}

/* ---- Left panel (info) ---- */
.contactus-block .contactus-content {
  flex: 0 0 320px;
  background: var(--brand-base, #0f172a);
  border-radius: 1.25rem;
  padding: 2.75rem 2.25rem;
  color: white;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 2rem;
}

.contactus-block .contactus-content .heading.h-2 {
  color: white !important;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.contactus-block .contactus-content .paragraph.p-1 {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contactus-block .contactus-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contactus-block .contactus-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.contactus-block .contactus-info .info-item .icon.icon-md {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.contactus-block .contactus-info .info-item .icon.icon-md .fa,
.contactus-block .contactus-info .info-item .icon.icon-md i,
.contactus-block .contactus-info .info-item .icon.icon-md span {
  color: white !important;
  font-size: 1.1rem !important;
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  display: inline !important;
}

.contactus-block .contactus-info .info-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s;
}

.contactus-block .contactus-info .info-item a:hover {
  color: white;
}

/* ---- Right panel (form) ---- */
.contactus-block > .container > .wrapper > form {
  flex: 1 1 0;
  background: white;
  border-radius: 1.25rem;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e4e7ef;
}

.contactus-block form input[type='text'],
.contactus-block form input[type='email'],
.contactus-block form input[type='tel'],
.contactus-block form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.125rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-sizing: border-box;
}

.contactus-block form input[type='text']:focus,
.contactus-block form input[type='email']:focus,
.contactus-block form input[type='tel']:focus,
.contactus-block form textarea:focus {
  border-color: var(--highlight-base, #137df7);
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.12);
  background: white;
}

.contactus-block form input::placeholder,
.contactus-block form textarea::placeholder {
  color: #94a3b8;
}

.contactus-block form textarea {
  min-height: 130px;
  resize: vertical;
}

.contactus-block form img[alt='captcha'] {
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.contactus-block form .button[type='submit'],
.contactus-block form button[type='submit'],
.contactus-block form input[type='submit'] {
  background: var(--highlight-base, #137df7);
  color: white !important;
  border: none;
  border-radius: 0.625rem;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  display: inline-block;
  line-height: 1.15;
  box-shadow: 0 4px 14px rgba(19, 125, 247, 0.3);
  letter-spacing: 0.01em;
}

.contactus-block form .button[type='submit']:hover,
.contactus-block form button[type='submit']:hover,
.contactus-block form input[type='submit']:hover {
  background: #0c6ad4;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(19, 125, 247, 0.38) !important;
}

@media (max-width: 900px) {
  .contactus-block > .container > .wrapper {
    flex-direction: column;
  }

  .contactus-block .contactus-content {
    flex: none;
    width: 100%;
    position: static;
  }
}

@media (max-width: 560px) {
  .contactus-block {
    padding: 2.5rem 0;
  }

  .contactus-block > .container > .wrapper > form {
    padding: 1.75rem 1.25rem;
  }

  .contactus-block .contactus-content {
    padding: 1.75rem 1.5rem;
  }
}

/* -- TREF plan-tier stars (replaces plan image in advertise cards) ---------
   plan-advertising-single.html.twig renders .tref-stars-card when the plan
   name matches "TREF Unlimited/Limited/Restricted". The .image-block inside
   that card contains a .tref-plan-stars row with 3 SVG stars (filled or
   outline). CSS below centres, colours (gold-ish blue), and sizes them to
   roughly match the original image slot height so page layout is preserved.
   -------------------------------------------------------------------------- */
.tref-stars-card .image-block {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f2ff 0%, #f7faff 100%);
  min-height: 220px;
  padding: 24px;
}
.tref-plan-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.tref-plan-stars .tref-star {
  width: 72px;
  height: 72px;
  color: #016dff; /* Tref brand blue */
  filter: drop-shadow(0 2px 6px rgba(1, 109, 255, 0.3));
  transition: transform 0.18s ease;
}
.tref-plan-stars .tref-star--empty {
  color: #b8d3ff; /* light brand blue for unfilled */
  filter: none;
}
.tref-stars-card:hover .tref-plan-stars .tref-star--filled {
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .tref-plan-stars .tref-star {
    width: 52px;
    height: 52px;
  }
  .tref-stars-card .image-block {
    min-height: 160px;
    padding: 16px;
  }
}

/* ==========================================================================
   TREF NORMAL PRODUCT PAGE � Classified detail (clean light e-commerce look)
   Standard Shopify/Amazon-style: white cards, image left / details right,
   description below. Scoped to .details-default.details-classifieds only.
   ========================================================================== */

/* Page background */
.details-default.details-classifieds {
  background: #ffffff;
}

/* --- Header: light, clean, no dark hero ---------------------------------- */
.details-default.details-classifieds > .details-header.details-header-desktop {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #e5e7eb;
  padding: 28px 0;
  min-height: 0;
}
.details-default.details-classifieds
  > .details-header.details-header-desktop::before {
  display: none !important;
}
.details-default.details-classifieds > .details-header .details-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  color: #111827;
}
.details-default.details-classifieds > .details-header .details-title h1,
.details-default.details-classifieds > .details-header .details-title .heading {
  color: #111827 !important;
  font-weight: 700;
  font-size: 26px !important;
  letter-spacing: -0.01em;
  text-shadow: none !important;
}
.details-default.details-classifieds > .details-header .categories a {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

/* Price � clean, bold, dark (like a real product page) */
.details-default.details-classifieds .details-price {
  color: #111827 !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  margin: 14px 0 18px !important;
  display: block;
}

/* Primary CTA � solid, standard "Add to cart / Contact" button */
.details-default.details-classifieds
  .details-actions
  .button.button-bg.is-primary {
  background: #137df7 !important;
  border: none !important;
  color: #fff !important;
  padding: 13px 30px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: background 0.15s ease;
}
.details-default.details-classifieds
  .details-actions
  .button.button-bg.is-primary:hover {
  background: #0f6bc8 !important;
}

/* Contact info block on the right of header � plain, light */
.details-default.details-classifieds
  > .details-header
  .details-header-content
  > .details-general
  + * {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
  border-radius: 10px;
  min-width: 240px;
}
.details-default.details-classifieds
  > .details-header
  .details-header-content
  > .details-general
  + *
  a,
.details-default.details-classifieds
  > .details-header
  .details-header-content
  > .details-general
  + *
  span,
.details-default.details-classifieds
  > .details-header
  .details-header-content
  > .details-general
  + *
  div {
  color: #374151 !important;
}
.details-default.details-classifieds
  > .details-header
  .details-header-content
  > .details-general
  + *
  i.fa {
  color: #137df7 !important;
}

/* --- Body: two-column product grid, white cards ------------------------- */
.details-default.details-classifieds .detail-body {
  background: #ffffff;
  padding: 32px 0;
}
.details-default.details-classifieds .detail-body .tab-content.has-sidebar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px !important;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .details-default.details-classifieds .detail-body .tab-content.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Section cards � light and subtle */
.details-default.details-classifieds .detail-body .tab-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}
.details-default.details-classifieds .detail-body .tab-item-heading {
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
}
.details-default.details-classifieds .detail-body .tab-item-heading h4 {
  font-weight: 700 !important;
  color: #111827 !important;
  font-size: 18px !important;
  margin: 0 !important;
}

/* Product image � clean white frame, centered */
.details-default.details-classifieds .detail-gallery-main-image {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  margin: 6px 0 18px;
  text-align: center;
}
.details-default.details-classifieds .detail-gallery-main-image img {
  max-width: 100%;
  max-height: 460px;
  height: auto;
  width: auto;
  display: inline-block;
}

/* Thumbnails row */
.details-default.details-classifieds .detail-gallery-thumb-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.details-default.details-classifieds
  .detail-gallery-thumb-images
  .gallery-image,
.details-default.details-classifieds .detail-gallery-thumb-images a {
  width: 72px !important;
  height: 72px !important;
  border-radius: 8px !important;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: border-color 0.15s ease;
  display: block;
  padding: 0;
}
.details-default.details-classifieds
  .detail-gallery-thumb-images
  .gallery-image:hover,
.details-default.details-classifieds .detail-gallery-thumb-images a:hover {
  border-color: #137df7;
}
.details-default.details-classifieds .detail-gallery-thumb-images img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Description text */
.details-default.details-classifieds .tab-item-about .description {
  color: #374151;
  line-height: 1.7;
  font-size: 15px;
}
.details-default.details-classifieds .tab-item-about .summary-description {
  font-size: 16px;
  color: #111827;
  font-weight: 500;
  margin-bottom: 16px !important;
}

/* --- Sidebar: seller & location cards ----------------------------------- */
.details-default.details-classifieds .detail-body .tab-right {
  position: sticky;
  top: 20px;
  align-self: start;
}
.details-default.details-classifieds .tab-item-offer-owner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}
.details-default.details-classifieds .tab-item-offer-owner .tab-item-heading {
  border-bottom: none;
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.details-default.details-classifieds
  .tab-item-offer-owner
  .tab-item-heading
  h4 {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.details-default.details-classifieds .tab-item-offer-owner .review-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.details-default.details-classifieds .tab-item-offer-owner .owner-picture {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.details-default.details-classifieds .tab-item-offer-owner .owner-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details-default.details-classifieds .tab-item-offer-owner .owner-content {
  flex: 1;
  min-width: 0;
}
.details-default.details-classifieds .tab-item-offer-owner .owner-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  display: block;
  margin-bottom: 6px;
  text-decoration: none !important;
  line-height: 1.2;
}
.details-default.details-classifieds .tab-item-offer-owner .owner-name:hover {
  color: #137df7 !important;
}
.details-default.details-classifieds .tab-item-offer-owner .reviews-vote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 12px;
  font-size: 13px;
  color: #6b7280;
}
.details-default.details-classifieds .tab-item-offer-owner .reviews-rating {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}
.details-default.details-classifieds
  .tab-item-offer-owner
  .reviews-stars
  .fa-star {
  color: #f59e0b;
  font-size: 12px;
}
.details-default.details-classifieds
  .tab-item-offer-owner
  .reviews-stars
  .fa-star-o {
  color: #d1d5db;
  font-size: 12px;
}
.details-default.details-classifieds
  .tab-item-offer-owner
  .owner-actions
  .button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  background: #137df7 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  margin-top: 4px;
  transition: background 0.15s ease;
}
.details-default.details-classifieds
  .tab-item-offer-owner
  .owner-actions
  .button:hover {
  background: #0f6bc8 !important;
}

/* Location */
.details-default.details-classifieds .tab-item-location .location-address {
  color: #4b5563;
  padding: 8px 0;
  line-height: 1.5;
}
.details-default.details-classifieds .tab-item-location .button.is-primary {
  background: #f3f4f6 !important;
  color: #137df7 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  margin-top: 12px;
}
.details-default.details-classifieds
  .tab-item-location
  .button.is-primary:hover {
  background: #137df7 !important;
  color: #fff !important;
}

/* Additional info link */
.details-default.details-classifieds .tab-item-additional .other-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: #f3f4f6;
  border-radius: 8px;
  color: #137df7;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.details-default.details-classifieds .tab-item-additional .other-name:hover {
  background: #e5e7eb;
}
.details-default.details-classifieds .tab-item-additional .other-name i.fa {
  font-size: 18px;
}

/* --- Mobile ------------------------------------------------------------- */
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .detail-header-content-mobile {
  background: #ffffff !important;
  background-image: none !important;
  min-height: 0;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .detail-header-content-mobile::before {
  display: none !important;
}
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .details-title
  .heading {
  color: #111827 !important;
  font-weight: 700;
}
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .categories
  a {
  background: #f3f4f6 !important;
  color: #374151 !important;
}
.details-default.details-classifieds .detail-info-mobile {
  background: #fff;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.details-default.details-classifieds .detail-info-mobile .details-price {
  font-size: 26px !important;
}

@media (max-width: 640px) {
  .details-default.details-classifieds .detail-body {
    padding: 18px 0;
  }
  .details-default.details-classifieds .detail-body .tab-item {
    padding: 18px;
  }
  .details-default.details-classifieds .details-price {
    font-size: 24px !important;
  }
}
/* ==========================================================================
   END TREF NORMAL PRODUCT PAGE
   ========================================================================== */

/* ==========================================================================
   TREF SHOP � WooCommerce-style product page (HPDC-reference match)
   ========================================================================== */

/* Two equal columns � image/description on the left, product info on the right */
.details-default.details-classifieds .detail-body .tab-content.has-sidebar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 40px !important;
  max-width: 1240px !important;
}
@media (max-width: 900px) {
  .details-default.details-classifieds .detail-body .tab-content.has-sidebar {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
/* Prevent shop widgets from overflowing their column */
.details-default.details-classifieds .tab-item,
.details-default.details-classifieds .tref-shop-box,
.details-default.details-classifieds .tref-info-card,
.details-default.details-classifieds .tref-buy-card {
  box-sizing: border-box;
  max-width: 100%;
}
/* Wrap-friendly SKU line + badge that doesn't break "Thatcham Approved" */
.details-default.details-classifieds .tref-shop-sku {
  white-space: normal;
  word-break: normal;
}
.details-default.details-classifieds .tref-shop-sku span {
  white-space: nowrap;
}
.details-default.details-classifieds .tref-shop-badge {
  white-space: nowrap;
}
.details-default.details-classifieds .tref-benefits-title {
  white-space: nowrap;
}
/* Stretch the "Offer By" card to match the shop-box width in the sidebar */
.details-default.details-classifieds .tab-right {
  min-width: 0;
}

/* Shop box mirrors the About card on the left (same border/padding/bg) so both
   columns are visually symmetric and fill the full column width. */
.tref-shop-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  width: 100%;
}
.tab-right .tref-shop-box {
  border: 1px solid #e5e7eb;
  padding: 28px;
  background: #fff;
}

/* === HEADER info: SKU, badge, price, In Stock ============================ */
.tref-shop-info {
  padding: 4px 4px 16px;
}
.tref-shop-sku {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.tref-shop-sku span {
  color: #374151;
  font-weight: 600;
}
.tref-shop-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.02em;
}
.tref-shop-price {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}
.tref-shop-stock {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tref-shop-stock::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.tref-shop-stock.is-in {
  color: #047857;
}
.tref-shop-stock.is-in::before {
  background: #10b981;
}
.tref-shop-stock.is-out {
  color: #b91c1c;
}
.tref-shop-stock.is-out::before {
  background: #ef4444;
}
.tref-shop-stock.is-pre {
  color: #1d4ed8;
}
.tref-shop-stock.is-pre::before {
  background: #3b82f6;
}

/* === INFO CARD: benefits (2 cols) + disclaimer ========================== */
/* Info card is inside the shop-box (which already has border/padding) � no extra frame */
.tref-info-card {
  background: transparent;
  border: none;
  padding: 0;
  margin: 8px 0 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.tref-benefits-title {
  font-weight: 700;
  color: #047857;
  font-size: 15px;
  margin-bottom: 12px;
}
.tref-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.tref-benefit {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .tref-benefits-grid {
    grid-template-columns: 1fr;
  }
}
.tref-shop-disclaimer {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* === BUY CARD: variants + qty + add to bag ============================== */
.tref-buy-card {
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
}
.tref-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.tref-variant {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s,
    background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  position: relative;
}
.tref-variant:hover {
  border-color: #93c5fd;
}
.tref-variant.is-active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.tref-variant-label {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.tref-variant-price {
  font-size: 12px;
  color: #6b7280;
}
.tref-variant-price s {
  color: #cbd5e1;
  margin-left: 3px;
}
.tref-variant.is-soldout {
  opacity: 0.5;
  cursor: not-allowed;
}
.tref-variant-soldout {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.tref-buy-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tref-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.tref-qty button {
  width: 40px;
  height: 46px;
  border: none;
  background: #fff;
  font-size: 18px;
  color: #374151;
  cursor: pointer;
  transition: background 0.12s;
}
.tref-qty button:hover {
  background: #f3f4f6;
}
.tref-qty-input {
  width: 42px;
  height: 46px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}
.tref-add-bag {
  flex: 1;
  min-width: 200px;
  background: #0f2540;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  height: 48px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.15s,
    transform 0.12s;
}
.tref-add-bag:hover {
  background: #17325a;
  transform: translateY(-1px);
}
.tref-add-bag:active {
  transform: translateY(0);
}

/* === Content tabs (full-width below both columns) ======================= */
.tref-tabs {
  max-width: 1180px;
  margin: 32px auto 20px;
  padding: 0 16px;
}
.tref-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tref-tab {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f2540;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.tref-tab:hover {
  border-color: #93c5fd;
}
.tref-tab.is-active {
  background: #0f2540;
  color: #fff;
  border-color: #0f2540;
}
.tref-tab-panel {
  display: none;
  padding: 20px 4px;
}
.tref-tab-panel.is-active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tref-tab-panel p {
  color: #374151;
  line-height: 1.7;
  margin: 0 0 10px;
  font-size: 14px;
}
.tref-tab-panel .tref-tab-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.tref-tab-panel .tref-tab-bullet::before {
  content: '\2713';
  color: #16a34a;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* === Cart FAB + drawer ================================================== */
.tref-cart-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f2540;
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 37, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  border: 2px solid #fff;
}
.tref-cart-fab:not(.has-items) .tref-cart-count {
  display: none;
}
.tref-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
}
.tref-cart-drawer.is-open {
  visibility: visible;
}
.tref-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.tref-cart-drawer.is-open .tref-cart-overlay {
  opacity: 1;
}
.tref-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
}
.tref-cart-drawer.is-open .tref-cart-panel {
  transform: none;
}
.tref-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.tref-cart-head h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}
.tref-cart-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}
.tref-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.tref-cart-empty {
  color: #9ca3af;
  text-align: center;
  padding: 40px 0;
}
.tref-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.tref-cart-info {
  flex: 1;
  min-width: 0;
}
.tref-cart-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}
.tref-cart-variant {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.tref-cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tref-cart-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  color: #374151;
}
.tref-cart-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}
.tref-cart-foot {
  border-top: 1px solid #e5e7eb;
  padding: 18px 20px;
}
.tref-cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #0f172a;
}
.tref-cart-total strong {
  font-size: 20px;
}
.tref-cart-checkout {
  width: 100%;
  background: #137df7;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.tref-cart-checkout:hover {
  background: #0f6bc8;
}

/* === Owner edit FAB + editor modal ====================================== */
.tref-shop-edit-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  background: #0f2540;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 37, 64, 0.3);
}
.tref-shop-edit-fab:hover {
  background: #17325a;
}
.tref-shop-editor {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.tref-se-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.tref-se-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  max-width: 94vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}
.tref-se-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.tref-se-head h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}
.tref-se-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}
.tref-se-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.tref-se-body label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 5px;
}
.tref-se-body input[type='text'],
.tref-se-body select,
.tref-se-body textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.tref-se-body input:focus,
.tref-se-body select:focus,
.tref-se-body textarea:focus {
  border-color: #137df7;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.12);
}
.tref-se-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}
.tref-se-toggle input {
  width: auto;
}
.tref-se-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.tref-se-section {
  margin-top: 22px;
}
.tref-se-sec-head {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.tref-se-variant {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr 0.7fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.tref-se-variant .v-del,
.tref-se-benefit .b-del {
  width: 32px;
  height: 36px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}
.tref-se-benefit {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.tref-se-benefit .b-txt {
  flex: 1;
}
.tref-se-tab {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.tref-se-tab .t-title {
  margin-bottom: 8px;
}
.tref-se-tab .t-body {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}
.tref-se-tab .t-del {
  margin-top: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.tref-se-add {
  margin-top: 6px;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  color: #137df7;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.tref-se-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #e5e7eb;
}
.tref-se-cancel {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}
.tref-se-save {
  background: #137df7;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
}
.tref-se-save:hover {
  background: #0f6bc8;
}
@media (max-width: 640px) {
  .tref-se-variant {
    grid-template-columns: 1fr 1fr;
  }
  .tref-se-grid2 {
    grid-template-columns: 1fr;
  }
  .tref-buy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tref-add-bag {
    width: 100%;
  }
  .tref-qty {
    align-self: flex-start;
  }
}
/* ==========================================================================
   END TREF SHOP
   ========================================================================== */

/* ==========================================================================
   TREF SHOP � WooCommerce-style product page (HPDC-reference match)
   ========================================================================== */

/* Two equal columns � image/description on the left, product info on the right */
.details-default.details-classifieds .detail-body .tab-content.has-sidebar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 40px !important;
  max-width: 1240px !important;
}
@media (max-width: 900px) {
  .details-default.details-classifieds .detail-body .tab-content.has-sidebar {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
/* Prevent shop widgets from overflowing their column */
.details-default.details-classifieds .tab-item,
.details-default.details-classifieds .tref-shop-box,
.details-default.details-classifieds .tref-info-card,
.details-default.details-classifieds .tref-buy-card {
  box-sizing: border-box;
  max-width: 100%;
}
/* Wrap-friendly SKU line + badge that doesn't break "Thatcham Approved" */
.details-default.details-classifieds .tref-shop-sku {
  white-space: normal;
  word-break: normal;
}
.details-default.details-classifieds .tref-shop-sku span {
  white-space: nowrap;
}
.details-default.details-classifieds .tref-shop-badge {
  white-space: nowrap;
}
.details-default.details-classifieds .tref-benefits-title {
  white-space: nowrap;
}
/* Stretch the "Offer By" card to match the shop-box width in the sidebar */
.details-default.details-classifieds .tab-right {
  min-width: 0;
}

/* Shop box mirrors the About card on the left (same border/padding/bg) so both
   columns are visually symmetric and fill the full column width. */
.tref-shop-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  width: 100%;
}
.tab-right .tref-shop-box {
  border: 1px solid #e5e7eb;
  padding: 28px;
  background: #fff;
}

/* === HEADER info: SKU, badge, price, In Stock ============================ */
.tref-shop-info {
  padding: 4px 4px 16px;
}
.tref-shop-sku {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.tref-shop-sku span {
  color: #374151;
  font-weight: 600;
}
.tref-shop-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.02em;
}
.tref-shop-price {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}
.tref-shop-stock {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tref-shop-stock::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.tref-shop-stock.is-in {
  color: #047857;
}
.tref-shop-stock.is-in::before {
  background: #10b981;
}
.tref-shop-stock.is-out {
  color: #b91c1c;
}
.tref-shop-stock.is-out::before {
  background: #ef4444;
}
.tref-shop-stock.is-pre {
  color: #1d4ed8;
}
.tref-shop-stock.is-pre::before {
  background: #3b82f6;
}

/* === INFO CARD: benefits (2 cols) + disclaimer ========================== */
/* Info card is inside the shop-box (which already has border/padding) � no extra frame */
.tref-info-card {
  background: transparent;
  border: none;
  padding: 0;
  margin: 8px 0 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.tref-benefits-title {
  font-weight: 700;
  color: #047857;
  font-size: 15px;
  margin-bottom: 12px;
}
.tref-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.tref-benefit {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .tref-benefits-grid {
    grid-template-columns: 1fr;
  }
}
.tref-shop-disclaimer {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

/* === BUY CARD: variants + qty + add to bag ============================== */
.tref-buy-card {
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
}
.tref-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.tref-variant {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s,
    background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  position: relative;
}
.tref-variant:hover {
  border-color: #93c5fd;
}
.tref-variant.is-active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.tref-variant-label {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.tref-variant-price {
  font-size: 12px;
  color: #6b7280;
}
.tref-variant-price s {
  color: #cbd5e1;
  margin-left: 3px;
}
.tref-variant.is-soldout {
  opacity: 0.5;
  cursor: not-allowed;
}
.tref-variant-soldout {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.tref-buy-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tref-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.tref-qty button {
  width: 40px;
  height: 46px;
  border: none;
  background: #fff;
  font-size: 18px;
  color: #374151;
  cursor: pointer;
  transition: background 0.12s;
}
.tref-qty button:hover {
  background: #f3f4f6;
}
.tref-qty-input {
  width: 42px;
  height: 46px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}
.tref-add-bag {
  flex: 1;
  min-width: 200px;
  background: #0f2540;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  height: 48px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.15s,
    transform 0.12s;
}
.tref-add-bag:hover {
  background: #17325a;
  transform: translateY(-1px);
}
.tref-add-bag:active {
  transform: translateY(0);
}

/* === Content tabs (full-width below both columns) ======================= */
.tref-tabs {
  max-width: 1180px;
  margin: 32px auto 20px;
  padding: 0 16px;
}
.tref-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tref-tab {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f2540;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.tref-tab:hover {
  border-color: #93c5fd;
}
.tref-tab.is-active {
  background: #0f2540;
  color: #fff;
  border-color: #0f2540;
}
.tref-tab-panel {
  display: none;
  padding: 20px 4px;
}
.tref-tab-panel.is-active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.tref-tab-panel p {
  color: #374151;
  line-height: 1.7;
  margin: 0 0 10px;
  font-size: 14px;
}
.tref-tab-panel .tref-tab-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.tref-tab-panel .tref-tab-bullet::before {
  content: '\2713';
  color: #16a34a;
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 2px;
}

/* === Cart FAB + drawer ================================================== */
.tref-cart-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f2540;
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 37, 64, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tref-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  border: 2px solid #fff;
}
.tref-cart-fab:not(.has-items) .tref-cart-count {
  display: none;
}
.tref-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
}
.tref-cart-drawer.is-open {
  visibility: visible;
}
.tref-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.tref-cart-drawer.is-open .tref-cart-overlay {
  opacity: 1;
}
.tref-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 92vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
}
.tref-cart-drawer.is-open .tref-cart-panel {
  transform: none;
}
.tref-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.tref-cart-head h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}
.tref-cart-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}
.tref-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.tref-cart-empty {
  color: #9ca3af;
  text-align: center;
  padding: 40px 0;
}
.tref-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.tref-cart-info {
  flex: 1;
  min-width: 0;
}
.tref-cart-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}
.tref-cart-variant {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.tref-cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tref-cart-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  color: #374151;
}
.tref-cart-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}
.tref-cart-foot {
  border-top: 1px solid #e5e7eb;
  padding: 18px 20px;
}
.tref-cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #0f172a;
}
.tref-cart-total strong {
  font-size: 20px;
}
.tref-cart-checkout {
  width: 100%;
  background: #137df7;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.tref-cart-checkout:hover {
  background: #0f6bc8;
}

/* === Owner edit FAB + editor modal ====================================== */
.tref-shop-edit-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  background: #0f2540;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 37, 64, 0.3);
}
.tref-shop-edit-fab:hover {
  background: #17325a;
}
.tref-shop-editor {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.tref-se-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.tref-se-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  max-width: 94vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}
.tref-se-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.tref-se-head h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}
.tref-se-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}
.tref-se-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.tref-se-body label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 5px;
}
.tref-se-body input[type='text'],
.tref-se-body select,
.tref-se-body textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.tref-se-body input:focus,
.tref-se-body select:focus,
.tref-se-body textarea:focus {
  border-color: #137df7;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.12);
}
.tref-se-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}
.tref-se-toggle input {
  width: auto;
}
.tref-se-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.tref-se-section {
  margin-top: 22px;
}
.tref-se-sec-head {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.tref-se-variant {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr 0.7fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.tref-se-variant .v-del,
.tref-se-benefit .b-del {
  width: 32px;
  height: 36px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}
.tref-se-benefit {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.tref-se-benefit .b-txt {
  flex: 1;
}
.tref-se-tab {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.tref-se-tab .t-title {
  margin-bottom: 8px;
}
.tref-se-tab .t-body {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}
.tref-se-tab .t-del {
  margin-top: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.tref-se-add {
  margin-top: 6px;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  color: #137df7;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.tref-se-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #e5e7eb;
}
.tref-se-cancel {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}
.tref-se-save {
  background: #137df7;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  cursor: pointer;
}
.tref-se-save:hover {
  background: #0f6bc8;
}
@media (max-width: 640px) {
  .tref-se-variant {
    grid-template-columns: 1fr 1fr;
  }
  .tref-se-grid2 {
    grid-template-columns: 1fr;
  }
  .tref-buy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tref-add-bag {
    width: 100%;
  }
  .tref-qty {
    align-self: flex-start;
  }
}
/* ==========================================================================
   END TREF SHOP
   ========================================================================== */

/* ==========================================================================
   TREF SHOP � full-width classified product page
   ========================================================================== */

/* Remove container width cap + side padding on the classified detail body */
.details-default.details-classifieds .detail-body .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 32px !important;
  box-sizing: border-box;
}

/* Also uncap the header so the hero spans full width */
.details-default.details-classifieds > .details-header .container {
  max-width: 100% !important;
  padding: 0 32px !important;
}

/* Remove the 1240px cap we added on the grid itself */
.details-default.details-classifieds .detail-body .tab-content.has-sidebar {
  max-width: 100% !important;
  width: 100% !important;
}

/* Bump the product image up so it fills the left column nicely */
.details-default.details-classifieds .detail-gallery-main-image {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.details-default.details-classifieds .detail-gallery-main-image img {
  max-height: 520px;
  max-width: 100%;
}

@media (max-width: 900px) {
  .details-default.details-classifieds .detail-body .container {
    padding: 0 16px !important;
  }
  .details-default.details-classifieds > .details-header .container {
    padding: 0 16px !important;
  }
}
/* ==========================================================================
   END TREF SHOP full-width
   ========================================================================== */

/* ==========================================================================
   TREF SHOP � LAYOUT OVERRIDE (fixes platform 65/30% flex widths)
   The platform sets tab-left:65% and tab-right:30% in a flex container.
   We must explicitly set display:grid AND reset those % widths to 100%
   so each child fills its grid cell.
   ========================================================================== */
.details-default.details-classifieds
  > .detail-body
  .detail-body-content
  .tab-content.has-sidebar {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: start;
}
/* Override the platform's hardcoded flex-child widths (65% / 30%) */
.details-default.details-classifieds
  > .detail-body
  .detail-body-content
  .tab-content.has-sidebar
  > .tab-left,
.details-default.details-classifieds
  > .detail-body
  .detail-body-content
  .tab-content.has-sidebar
  > .tab-right {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
}
@media (max-width: 900px) {
  .details-default.details-classifieds
    > .detail-body
    .detail-body-content
    .tab-content.has-sidebar {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
/* ==========================================================================
   END TREF SHOP LAYOUT OVERRIDE
   ========================================================================== */

/* ==========================================================================
   TREF SHOP � center the product page at a comfortable reading width
   ========================================================================== */
.details-default.details-classifieds .detail-body .container {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
}
/* Tighten the grid gap and let it inherit the container width naturally */
.details-default.details-classifieds
  > .detail-body
  .detail-body-content
  .tab-content.has-sidebar {
  max-width: 100% !important;
  width: 100% !important;
  gap: 48px !important;
}
/* ==========================================================================
   END TREF SHOP center
   ========================================================================== */

/* TREF SHOP � product title in right column */
.tref-shop-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 0 14px !important;
  letter-spacing: -0.01em;
}

/* TREF SHOP � Overview tab: preserve rich classified HTML formatting */
#tref-tabs .tref-tab-panel .custom-content,
#tref-tabs .tref-tab-panel .ckeditor-content,
#tref-tabs .tref-tab-panel .description {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}
#tref-tabs .tref-tab-panel h1,
#tref-tabs .tref-tab-panel h2,
#tref-tabs .tref-tab-panel h3 {
  color: #0f172a;
  font-weight: 700;
  margin: 16px 0 6px;
}
#tref-tabs .tref-tab-panel ul,
#tref-tabs .tref-tab-panel ol {
  padding-left: 20px;
  margin: 8px 0;
}
#tref-tabs .tref-tab-panel li {
  margin-bottom: 4px;
  color: #374151;
}
#tref-tabs .tref-tab-panel img {
  max-width: 100%;
  border-radius: 8px;
}
.tref-tab-summary {
  font-size: 16px;
  color: #374151;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #f8fafc;
  border-left: 4px solid #137df7;
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   TREF SHOP TABS � final authoritative rules (IDs beat all class conflicts)
   ========================================================================== */
#tref-tabs {
  margin: 32px 0 0;
  width: 100%;
  box-sizing: border-box;
}
#tref-tabs .tref-tabs-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  padding: 0;
  border-bottom: 2px solid #e5e7eb;
}
#tref-tabs .tref-tab {
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  color: #374151 !important;
  padding: 11px 22px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  position: relative;
  bottom: -2px; /* sit flush on the border line */
}
#tref-tabs .tref-tab:hover,
#tref-tabs .tref-tab.is-active {
  background: #0f2540 !important;
  color: #fff !important;
  border-color: #0f2540 !important;
  border-bottom-color: #0f2540 !important;
}
/* Panels: show/hide is driven by inline style from JS.
   These rules only apply fallback formatting. */
#tref-tabs .tref-tabs-panels {
  border: 1.5px solid #e5e7eb;
  border-radius: 0 8px 8px 8px;
  padding: 28px;
  background: #fff;
}
/* Rich content inside the Overview panel */
#tref-tabs .tref-tab-panel {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
}
#tref-tabs .tref-tab-panel h1,
#tref-tabs .tref-tab-panel h2,
#tref-tabs .tref-tab-panel h3 {
  color: #0f172a;
  font-weight: 700;
  margin: 18px 0 8px;
}
#tref-tabs .tref-tab-panel p {
  margin: 0 0 12px;
}
#tref-tabs .tref-tab-panel ul,
#tref-tabs .tref-tab-panel ol {
  padding-left: 22px;
  margin: 8px 0 14px;
}
#tref-tabs .tref-tab-panel li {
  margin-bottom: 5px;
}
#tref-tabs .tref-tab-panel img {
  max-width: 100%;
  border-radius: 8px;
}
#tref-tabs .tref-tab-panel .tref-tab-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
#tref-tabs .tref-tab-panel .tref-tab-bullet::before {
  content: '\2713';
  color: #16a34a;
  font-weight: 700;
  flex: 0 0 auto;
}
/* ==========================================================================
   END TREF SHOP TABS
   ========================================================================== */
/* Prevent layout shift when switching tabs */
#tref-tabs .tref-tabs-panels {
  min-height: 300px;
}

/* #tref-tabs is now appended directly to .detail-body (OUTSIDE the 2-col container)
   so it spans full width. Give it the same centering as the container. */
#tref-tabs {
  max-width: 1400px !important;
  margin: 20px auto 0 !important;
  padding: 0 48px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
@media (max-width: 900px) {
  #tref-tabs {
    padding: 0 16px !important;
  }
}

/* TREF SHOP � contact info inside the product card */
.tref-contact-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tref-contact-row {
  display: flex;
  align-items: center;
  font-size: 14px;
}
/* Hide the original floating contact panel cards from the sidebar to avoid duplication */
.details-default.details-classifieds .details-contact-panel {
  display: none !important;
}
/* TREF SHOP � contact rows inside the Offer By card */
.tref-offer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151 !important;
  text-decoration: none !important;
  padding: 4px 0;
}
.tref-offer-contact-row i.fa {
  color: #137df7 !important;
  width: 16px;
  text-align: center;
  flex: 0 0 auto;
}
.tref-offer-contact-row:hover {
  color: #137df7 !important;
}

/* ==========================================================================
   TREF SHOP � BRAND COLOUR FIX: swap custom dark navy for site primary blue
   ========================================================================== */

/* ADD TO BAG button */
.tref-add-bag {
  background: #137df7 !important;
}
.tref-add-bag:hover {
  background: #0f6bc8 !important;
}

/* Cart FAB + drawer checkout */
.tref-cart-fab {
  background: #137df7 !important;
  box-shadow: 0 8px 20px rgba(19, 125, 247, 0.3) !important;
}
.tref-cart-checkout {
  background: #137df7 !important;
}
.tref-cart-checkout:hover {
  background: #0f6bc8 !important;
}

/* Owner edit FAB */
.tref-shop-edit-fab {
  background: #137df7 !important;
}
.tref-shop-edit-fab:hover {
  background: #0f6bc8 !important;
}

/* Active tab button � inline styles set by JS but override the stored value */
#tref-tabs-nav [data-i].is-active,
#tref-tabs-nav [data-i][style*='0f2540'] {
  background: #137df7 !important;
  border-color: #137df7 !important;
}

/* Selected variant chip */
.tref-variant.is-active {
  border-color: #137df7 !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(19, 125, 247, 0.15) !important;
}

/* Thatcham Approved / badges ? blue instead of green */
.tref-shop-badge {
  background: #eff6ff !important;
  color: #137df7 !important;
  border-color: #93c5fd !important;
}

/* "Potential benefits" heading */
.tref-benefits-title {
  color: #137df7 !important;
}

/* Se editor save button already uses #137df7 � keep consistent */
/* ==========================================================================
   END BRAND COLOUR FIX
   ========================================================================== */
/* TREF SHOP � variant image upload in editor */
.tref-se-variant {
  grid-template-columns: 1.3fr 1fr 0.8fr 0.8fr 0.7fr auto auto !important;
}
.se-v-img-btn {
  width: 40px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 40px;
}
.se-v-img-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}
.se-v-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.se-v-thumb-empty {
  font-size: 18px;
  line-height: 1;
}
/* TREF Seller strip � Send message button override */
#tref-seller-strip .owner-actions .button {
  display: inline-block !important;
  background: #137df7 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 28px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  width: auto !important;
  cursor: pointer;
  text-align: center;
}
#tref-seller-strip .owner-actions .button:hover {
  background: #0f6bc8 !important;
}
@media (max-width: 640px) {
  #tref-seller-strip {
    padding: 0 16px;
  }
}
/* TREF Product drawer */
#tref-pd-drawer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  visibility: hidden;
}
#tref-pd-drawer.is-open {
  visibility: visible;
}
.tref-pd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}
#tref-pd-drawer.is-open .tref-pd-overlay {
  opacity: 1;
}
.tref-pd-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 92vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
#tref-pd-drawer.is-open .tref-pd-panel {
  transform: none;
}
.tref-pd-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 20px 0;
  flex: 0 0 auto;
}
.tref-pd-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
}
.tref-pd-body {
  overflow-y: auto;
  padding: 0 20px 28px;
  -webkit-overflow-scrolling: touch;
}
.tref-pd-img {
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 16px;
}
.tref-pd-img img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}
.tref-pd-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.25;
}
.tref-pd-price {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 14px;
}
.tref-pd-section {
  margin-top: 18px;
}
.tref-pd-sec-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.tref-pd-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.tref-pd-benefit {
  font-size: 13px;
  color: #374151;
}
.tref-pd-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tref-pd-variant {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  transition: border-color 0.15s;
}
.tref-pd-variant:hover {
  border-color: #93c5fd;
}
.tref-pd-variant.is-active {
  border-color: #137df7;
  background: #eff6ff;
}
.tref-pd-variant small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 2px;
}
@media (min-width: 600px) {
  .tref-pd-panel {
    left: auto;
    right: 0;
    width: 460px;
    max-height: 100vh;
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
  }
  #tref-pd-drawer.is-open .tref-pd-panel {
    transform: none;
  }
}

/* ==========================================================================
   TREF Inline Product � polish pass (2026-07-07)
   ========================================================================== */

/* Smooth open animation */
#tref-inline-product {
  animation: trefSlideIn 0.3s ease;
}
@keyframes trefSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sticky header bar showing which product is open */
#tref-inline-product > div > div:first-child {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Left column (About + image): min-height so short products don't look empty */
#tref-inline-product > div > div:nth-child(2) > div:first-child {
  min-height: 200px;
}

/* Benefits grid ? 2 cols max */
#tref-il-variants {
  gap: 8px;
}

/* Highlight the selected classified card with a blue ring */
.cards-default[data-type='classifieds'] .card a[data-tref-hijacked='1'] {
  outline: none;
}
.cards-default[data-type='classifieds'] .card.tref-selected {
  outline: 2.5px solid #137df7;
  border-radius: 10px;
}
/* ==========================================================================
   END TREF Inline Product polish
   ========================================================================== */
/* Hide the old classified header "Send a message" button � it's now in the seller strip */
.details-default.details-classifieds > .details-header .details-actions {
  display: none !important;
}
.details-default.details-classifieds
  > .details-header.details-header-mobile
  .details-actions {
  display: none !important;
}

/* Collapse the now-empty classified hero header (title/price/contact were
   relocated into the product box + seller strip, leaving a big white gap). */
.details-default.details-classifieds > .details-header.details-header-desktop {
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
.details-default.details-classifieds > .details-header.details-header-mobile {
  min-height: 0 !important;
  padding: 0 !important;
}
/* Give the body a little top spacing since the header is gone */
.details-default.details-classifieds .detail-body {
  padding-top: 28px !important;
}
.tref-composer .tref-modal {
  overflow-x: hidden;
}
.tref-status-tile .tref-unread-badge {
  display: none !important;
}

/* ------------------------------------------------------------------
   Sticky footer: keep the footer pinned to the bottom of the viewport
   on short pages. The footer is a direct child of <body>, so making the
   body a flex column and pushing the footer with margin-top:auto sends
   it to the bottom when content is short, with no effect on tall pages.
------------------------------------------------------------------ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > .footer {
  margin-top: auto;
}

/* ==========================================================================
   TREF MOBILE POLISH (2026-09-16) — compact hero search, sane headings,
   no horizontal overflow. Desktop untouched (all rules are max-width scoped).
   ========================================================================== */
.tref-lp .search-btn .btn-label {
  display: none;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Header a little tighter */
  .header > .navbar-mobile {
    padding: 0.5rem 0;
  }
  .header > .header-content .content-mobile img,
  .header .navbar-mobile img {
    max-height: 40px;
    width: auto;
  }

  /* Hero container */
  .tref-new-hp .main-content {
    padding: 1rem 0 1.25rem;
  }
  .tref-lp .content-container {
    padding: 0 1rem;
  }
  .tref-lp-thin .hero-content {
    padding: 0.75rem 1rem 1rem;
  }

  /* Duplicate hero logo → small brand mark */
  .tref-new-hp .main-logo {
    margin: 0 0 0.5rem;
    text-align: center;
  }
  .tref-new-hp .main-logo img {
    width: 4.5rem !important;
    height: auto;
  }

  /* AI toggle: compact pill */
  .tref-lp .ai-mode-toggle {
    width: max-content;
    max-width: 100%;
    align-self: center;
    display: inline-flex;
    padding: 0.35rem 0.875rem;
    gap: 0.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
  }
  .tref-lp #locationText:empty::before {
    content: 'Enter a location';
    color: #6b7280;
  }
  .tref-lp .ai-mode-toggle svg {
    width: 16px;
    height: 16px;
  }
  .tref-lp .ai-mode-toggle .switch-button {
    transform: scale(0.85);
  }

  /* Search form stack */
  .tref-lp .search-section {
    gap: 0.625rem;
    margin-top: 0.5rem;
  }
  .tref-lp .search-inputs {
    gap: 0.625rem;
  }
  .tref-lp .search-input-container {
    min-width: 0;
    width: 100%;
  }
  .tref-lp #searchInput,
  .tref-lp input#searchInput,
  .tref-lp .location-btn,
  .tref-lp-thin
    .hero-content
    .content-container
    .search-section
    .search-input-container
    input#searchInput,
  .tref-lp-thin .hero-content .content-container .search-section .location-btn {
    min-height: 46px !important;
    height: 46px;
    padding: 0 2.75rem 0 2.5rem !important;
    font-size: 0.9375rem !important;
    border-radius: 0.625rem;
    line-height: 46px;
  }
  .tref-lp .location-btn {
    padding: 0 1rem 0 2.5rem !important;
    justify-content: flex-start;
  }
  .tref-lp .search-placeholder {
    font-size: 0.9375rem;
    line-height: 46px;
  }
  .tref-lp .search-input-container svg,
  .tref-lp .location-btn svg {
    width: 18px;
    height: 18px;
    left: 14px;
  }
  .tref-lp .location-btn svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
  }
  .tref-lp .location-btn {
    position: relative;
  }
  .tref-lp .tref-voice-btn {
    right: 10px;
  }

  /* Submit: full-width labelled button */
  .tref-lp .search-button-container {
    width: 100%;
  }
  .tref-lp .search-btn,
  .tref-lp.tref-lp-thin .search-btn {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 0.625rem;
    box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.25);
  }
  .tref-lp .search-btn .btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .tref-lp .search-btn .btn-label {
    display: inline;
  }
  .tref-lp .search-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Browse categories (mobile chips) */
  .tref-new-hp .browse-mobile {
    margin: 1.5rem 0 0;
    gap: 0.75rem;
  }
  .tref-new-hp .browse-mobile .categories-grid {
    gap: 0.5rem;
  }
  .tref-new-hp .browse-mobile .categories-grid .category-card {
    padding: 0.45rem 0.75rem;
  }

  /* Inner pages: search bar on top should be compact */
  .tref-lp .hero-content:not(.main-content) {
    padding: 0.75rem 1rem 1rem;
  }
  .tref-lp .ai-mode-toggle {
    margin-top: 0;
  }

  /* Page headings */
  .categories-base .categories-header {
    margin-bottom: 1rem;
    gap: 0.25rem;
  }
  .categories-base .categories-header > .heading,
  .cards-default .cards-header > .heading,
  .heading.h-4 {
    font-size: 1.25rem !important;
    line-height: 1.3;
  }
  .results-header .results-title,
  .heading.h-1.results-title {
    font-size: 1.25rem !important;
    line-height: 1.3;
  }
  .results-header {
    padding: 1rem 0 0.5rem;
  }
  .results-header .results-count,
  .results-header p {
    font-size: 0.875rem;
  }
  .container {
    padding: 0 1rem;
  }

  /* Category cards */
  .tref-new-hp .categories-grid,
  .categories-base .categories-grid {
    gap: 0.75rem;
  }
  .categories-base .category-card {
    padding: 1rem 0.75rem;
    min-height: 0;
  }
  .categories-base .category-card .category-name,
  .categories-base .category-card .heading {
    font-size: 0.9375rem;
    line-height: 1.3;
  }
  .categories-base .category-card svg,
  .categories-base .category-card img {
    max-width: 40px;
    max-height: 40px;
  }

  /* Results toolbar (Distance / Grid / Map / Refine) */
  .results-toolbar,
  .results-filters,
  .results-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .refine-button,
  .button.button-md.refine-button {
    max-width: 100%;
  }
  .results-actions .button,
  .button.button-md {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    min-width: 0;
  }

  /* Listing summary cards */
  .summary-list .summary-card {
    padding: 1rem;
  }
  .summary-list .summary-card .summary-title {
    font-size: 1.125rem;
  }
  .summary-list .summary-card .summary-image img {
    max-height: 110px;
    width: auto;
  }

  /* Global guards */
  img,
  svg,
  video,
  iframe {
    max-width: 100%;
  }
  .footer,
  footer {
    font-size: 0.875rem;
  }
}

@media (max-width: 380px) {
  .tref-lp .content-container {
    padding: 0 0.75rem;
  }
  .tref-lp #searchInput,
  .tref-lp .location-btn {
    font-size: 0.875rem !important;
  }
  .tref-lp .search-btn .btn-content {
    font-size: 0.9375rem;
  }
  .categories-base .categories-header > .heading,
  .heading.h-4,
  .results-header .results-title {
    font-size: 1.2rem !important;
  }
  .tref-new-hp .categories-grid,
  .categories-base .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-actions .button,
  .button.button-md {
    padding: 0.45rem 0.7rem;
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   TREF CATEGORY MARQUEE (2026-09-16) — two auto-scrolling chip rows under the
   hero search. Row 1 drifts right, row 2 drifts left. All breakpoints.
   ========================================================================== */
.tref-new-hp .browse-mobile.browse-marquee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  width: 100%;
}
.tref-new-hp .browse-marquee .tref-cat-label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}
.tref-cat-marquee {
  width: 100%;
  max-width: 52rem; /* same as .search-forms-wrapper */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.25rem 0;
  background: #f5f7fb;
  border: 1px solid #eef1f6;
  border-radius: 1.25rem;
  overflow: hidden;
}
.tref-cat-row {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.tref-cat-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tref-marquee var(--tref-marquee-dur, 80s) linear infinite;
}
.tref-cat-row.is-right .tref-cat-track {
  animation-direction: reverse;
}
.tref-cat-marquee:hover .tref-cat-track,
.tref-cat-marquee:focus-within .tref-cat-track {
  animation-play-state: paused;
}
.tref-cat-set {
  display: flex;
  gap: 0.875rem;
  padding-right: 0.875rem; /* equals gap so the two copies join seamlessly */
}
.tref-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.6rem 1.05rem;
  background: #fff;
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.04);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.tref-cat-chip:hover {
  color: var(--highlight-base, #111827);
  border-color: var(--highlight-base, #c7d2fe);
  box-shadow: 0 4px 12px -6px rgb(17 24 39 / 0.2);
  transform: translateY(-1px);
}
.tref-cat-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
  opacity: 0.85;
}
.tref-new-hp .browse-marquee .more-options-btn {
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  margin-top: 0.25rem;
}
@media (max-width: 767px) {
  .tref-new-hp .browse-marquee .more-options-btn {
    display: none;
  }
}
/* Entertainment button + banner stay mobile-only */
@media (min-width: 768px) {
  .tref-new-hp .browse-marquee .button.is-outline,
  .tref-new-hp .browse-marquee .menu-banner {
    display: none;
  }
}
@keyframes tref-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tref-cat-track {
    animation: none;
  }
  .tref-cat-row {
    overflow-x: auto;
  }
  .tref-cat-set[aria-hidden='true'] {
    display: none;
  }
}
@media (max-width: 767px) {
  .tref-new-hp .browse-mobile.browse-marquee {
    margin-top: 1.25rem;
    gap: 0.875rem;
  }
  .tref-cat-marquee {
    gap: 0.625rem;
    padding: 0.875rem 0;
    border-radius: 1rem;
  }
  .tref-cat-set {
    gap: 0.625rem;
    padding-right: 0.625rem;
  }
  .tref-cat-chip {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }
  .tref-cat-chip img {
    width: 15px;
    height: 15px;
  }
}

/* ==========================================================================
   TREF RESULT CARD (2026-09-16) — unified listing summary card
   ========================================================================== */
.summary-list .summary-card.tref-card {
  --tc-text: #111827;
  --tc-muted: #6b7280;
  --tc-line: #e5e7eb;
  --tc-brand: var(--highlight-base, #1d6ff2);
  --tc-radius: 1rem;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  box-shadow:
    0 1px 2px rgb(17 24 39 / 0.04),
    0 8px 24px -18px rgb(17 24 39 / 0.25);
  font-family: 'Inter', sans-serif;
  color: var(--tc-text);
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.summary-list .summary-card.tref-card:hover {
  border-color: #d7dbe3;
  box-shadow:
    0 2px 4px rgb(17 24 39 / 0.05),
    0 16px 32px -20px rgb(17 24 39 / 0.35);
}
.tref-card .tc-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* header */
.tref-card .tc-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.tref-card .tc-logo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid var(--tc-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tref-card .tc-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
/* Status ring on result cards: let the overlay extend past the 52px logo box */
.tref-card .tc-logo {
  overflow: visible;
}
.tref-card .tc-logo img {
  border-radius: calc(0.75rem - 1px);
}
.tref-card .tc-logo .tref-story-overlay {
  border-radius: 1rem;
}
/* Global rule below disables pointer-events on non-detail overlays; re-enable so the card ring opens the viewer */
.tref-card .tc-logo .tref-story-overlay.has-story {
  pointer-events: auto;
  cursor: pointer;
}
.tref-card .tc-logo-fallback {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tc-brand);
}
.tref-card .tc-titles {
  flex: 1 1 auto;
  min-width: 0;
}
.tref-card .tc-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tref-card .tc-title a {
  color: var(--tc-text);
  text-decoration: none;
}
.tref-card .tc-title a:hover {
  color: var(--tc-brand);
}
.tref-card .tc-verified {
  display: inline-flex;
  color: var(--tc-brand);
}
.tref-card .tc-cats {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--tc-muted);
  line-height: 1.4;
}
.tref-card .tc-cats .summary-categories-label {
  display: none;
}
.tref-card .tc-cats a {
  color: var(--tc-muted);
  text-decoration: none;
}
.tref-card .tc-cats a:hover {
  color: var(--tc-brand);
  text-decoration: underline;
}
.tref-card .tc-cats .summary-categories-more,
.tref-card .tc-cats .more-categories {
  color: var(--tc-brand);
  font-weight: 600;
  cursor: pointer;
}
.tref-card .tc-rating {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #fff7e6;
  color: #b45309;
  font-size: 0.8125rem;
  font-weight: 700;
}
.tref-card .tc-rating .fa {
  color: #f59e0b;
}
.tref-card .tc-rating-count {
  font-weight: 500;
  color: #92400e;
}

/* meta rows */
.tref-card .tc-address {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--tc-muted);
  line-height: 1.4;
}
.tref-card .tc-address .fa {
  flex: none;
  color: #9ca3af;
  position: relative;
  top: 1px;
}
.tref-card .tc-address-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tref-card .tc-distance {
  flex: none;
  color: var(--tc-text);
  font-weight: 600;
  white-space: nowrap;
}
.tref-card .tc-distance strong {
  font-weight: 600;
}

.tref-card .tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.tref-card .tc-tag {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tref-card .tc-tag-more {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tc-muted);
}

.tref-card .tc-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tref-card .tc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tref-card .tc-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border: 1px solid var(--tc-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}
.tref-card .tc-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex: none;
}

/* footer */
.tref-card .tc-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tref-card .tc-foot-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.tref-card .tc-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #374151;
}
.tref-card .tc-hours .fa {
  color: #9ca3af;
}
.tref-card .tc-hours.is-open strong {
  color: #059669;
}
.tref-card .tc-hours.is-closed strong {
  color: #dc2626;
}
.tref-card .tc-hours strong {
  font-weight: 600;
}
.tref-card .tc-dot {
  color: #c4c8d0;
}
.tref-card .tc-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tc-text);
  font-weight: 600;
  text-decoration: none;
}
.tref-card .tc-phone .fa {
  color: #9ca3af;
}
.tref-card .tc-phone:hover {
  color: var(--tc-brand);
}
.tref-card .tc-foot-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.tref-card .tc-claim {
  font-size: 0.8125rem;
  color: var(--tc-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 0.25rem;
}
.tref-card .tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.8375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.tref-card .tc-btn-ghost {
  color: var(--tc-text);
  border: 1px solid var(--tc-line);
  background: #fff;
}
.tref-card .tc-btn-ghost:hover {
  border-color: #cbd5e1;
  background: #f9fafb;
}
.tref-card .tc-btn-primary {
  color: #fff;
  background: var(--tc-brand);
  border: 1px solid var(--tc-brand);
}
.tref-card .tc-btn-primary:hover {
  filter: brightness(0.95);
  color: #fff;
}

/* bookmark / website / share icons */
.tref-card .tc-more .summary-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}
.tref-card .tc-more .summary-actions > a,
.tref-card .tc-more .summary-actions .share-btn {
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-muted);
  background: transparent;
  border: 0;
  font-size: 0.95rem;
  text-decoration: none;
}
.tref-card .tc-more .summary-actions > a:hover,
.tref-card .tc-more .summary-actions .share-btn:hover {
  background: #f3f4f6;
  color: var(--tc-text);
}
.tref-card .tc-more .summary-actions a[data-modal='contact'] {
  display: none;
}

/* cover image */
.tref-card .tc-media {
  flex: none;
  width: 168px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #f3f4f6;
  display: block;
  align-self: stretch;
}
.tref-card .tc-media img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.tref-card:hover .tc-media img {
  transform: scale(1.03);
}

/* grid view: stack, image on top */
.summary-list[list-type='grid-view'] .summary-card.tref-card {
  flex-direction: column-reverse;
  gap: 0.9rem;
}
.summary-list[list-type='grid-view'] .tref-card .tc-media {
  width: 100%;
  aspect-ratio: 16 / 8;
}
.summary-list[list-type='grid-view'] .tref-card .tc-media img {
  min-height: 0;
}
.summary-list[list-type='grid-view'] .tref-card .tc-features,
.summary-list[list-type='grid-view'] .tref-card .tc-tags {
  display: none;
}

/* tablet */
@media (max-width: 991px) {
  .tref-card .tc-media {
    width: 136px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .summary-list .summary-card.tref-card {
    flex-direction: column-reverse;
    gap: 0.85rem;
    padding: 0.9rem 0.9rem 0.8rem;
    border-radius: 0.9rem;
  }
  .tref-card .tc-media {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 0.65rem;
  }
  .tref-card .tc-media img {
    min-height: 0;
  }
  .tref-card .tc-body {
    gap: 0.6rem;
  }
  .tref-card .tc-logo {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
  }
  .tref-card .tc-title {
    font-size: 1rem;
  }
  .tref-card .tc-rating {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }
  .tref-card .tc-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  .tref-card .tc-features {
    display: none;
  }
  .tref-card .tc-foot {
    padding-top: 0.7rem;
    gap: 0.6rem;
  }
  .tref-card .tc-foot-info {
    font-size: 0.8125rem;
    gap: 0.7rem;
  }
  .tref-card .tc-foot-actions {
    width: 100%;
    margin-left: 0;
  }
  .tref-card .tc-btn-primary {
    flex: 1 1 auto;
    justify-content: center;
  }
  .tref-card .tc-claim {
    display: none;
  }
}

/* TREF RESULT CARD — overflow fixes */
.summary-list .summary-card.tref-card { overflow: hidden; max-width: 100%; }
.tref-card .tc-foot { min-width: 0; }
.tref-card .tc-foot-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.tref-card .tc-claim { white-space: nowrap; }
.summary-list[list-type=grid-view] .tref-card .tc-claim { display: none; }
.summary-list[list-type=grid-view] .tref-card .tc-foot-actions { width: 100%; margin-left: 0; }
.summary-list[list-type=grid-view] .tref-card .tc-btn-primary { flex: 1 1 auto; justify-content: center; }
.summary-list[list-type=grid-view] .tref-card .tc-more { margin-left: auto; }
@media (max-width: 767px) {
  .summary-list .tref-card .tc-tags { display: flex !important; }
  .tref-card .tc-foot-actions { flex-wrap: nowrap; gap: 0.4rem; }
  .tref-card .tc-btn { padding: 0 0.7rem; font-size: 0.8125rem; }
  .tref-card .tc-more { margin-left: auto; }
  .tref-card .tc-more .summary-actions > a,
  .tref-card .tc-more .summary-actions .share-btn { width: 30px; height: 30px; }
}

/* TREF RESULT CARD — grid view: keep Contact / View details / icons on one line */
.summary-list[list-type=grid-view] .tref-card .tc-foot-actions { flex-wrap: nowrap; gap: 0.4rem; }
.summary-list[list-type=grid-view] .tref-card .tc-btn { padding: 0 0.7rem; font-size: 0.8125rem; min-width: 0; }
.summary-list[list-type=grid-view] .tref-card .tc-btn-ghost { flex: 0 1 auto; }
.summary-list[list-type=grid-view] .tref-card .tc-btn-primary { flex: 1 1 auto; }
.summary-list[list-type=grid-view] .tref-card .tc-more { flex: none; margin-left: 0; }
.summary-list[list-type=grid-view] .tref-card .tc-more .summary-actions { gap: 0; }
.summary-list[list-type=grid-view] .tref-card .tc-more .summary-actions > a,
.summary-list[list-type=grid-view] .tref-card .tc-more .summary-actions .share-btn { width: 30px; height: 30px; }
/* grid view is narrow: drop the website icon (details page has it) so Contact + View details + icons fit on one line */
.summary-list[list-type=grid-view] .tref-card .tc-more .summary-actions .visit-website { display: none; }
.summary-list[list-type=grid-view] .tref-card .tc-btn-ghost { padding: 0 0.6rem; }
.summary-list[list-type=grid-view] .tref-card .tc-btn-ghost .fa { display: none; }
@media (max-width: 767px) {
  .summary-list .tref-card .tc-btn-ghost .fa { display: none; }
}
/* share menu / tooltips must be able to escape the card */
.summary-list .summary-card.tref-card { overflow: visible; position: relative; }
.summary-list .summary-card.tref-card:hover,
.summary-list .summary-card.tref-card:focus-within { z-index: 20; }
.tref-card .tc-foot, .tref-card .tc-foot-actions, .tref-card .tc-more, .tref-card .tc-body { overflow: visible; }
.tref-card .tc-more .summary-actions .wrap-share,
.tref-card .tc-more .summary-actions .share { position: relative; }
.tref-card .tc-more .summary-actions .share .menu { z-index: 1000; }
/* share button sits at the card's right edge — open the menu leftwards so it never overflows */
.tref-card .tc-more .summary-actions .share .menu { left: auto; right: 0; top: calc(100% + 6px); }
.tref-card .tc-more .summary-actions .share .toast { left: auto; right: 40px; max-width: calc(100vw - 4rem); }

/* ==========================================================================
   TREF FILTER PANEL (2026-09-16) — professional sidebar filters
   ========================================================================== */
.results-body .results-sidebar .sidebar-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.04);
  font-family: 'Inter', sans-serif;
}
.results-body .results-sidebar .sidebar-item:not(:first-child) { margin-top: 0.75rem; }
.results-body .results-sidebar .sidebar-item .item-header {
  padding: 0.8rem 1rem;
  gap: 0.75rem;
  user-select: none;
}
.results-body .results-sidebar .sidebar-item .item-header:hover { background: #f9fafb; }
.results-body .results-sidebar .sidebar-item .item-header .item-title {
  font-weight: 600; font-size: 0.9375rem; color: #111827; letter-spacing: -0.01em;
}
.results-body .results-sidebar .sidebar-item .item-header .item-title .item-attr,
.results-body .results-sidebar .sidebar-item .item-header .item-title .item-badge {
  font-style: normal; font-weight: 500; font-size: 0.75rem; color: #1d6ff2;
  background: #eaf1fe; border: 0; border-radius: 999px; padding: 0.15rem 0.55rem; margin-left: 0.4rem;
}
.results-body .results-sidebar .sidebar-item .item-header > .fa {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f3f4f6; color: #374151;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem;
  transition: background 0.15s ease;
}
.results-body .results-sidebar .sidebar-item .item-header:hover > .fa { background: #e5e7eb; }
.results-body .results-sidebar .sidebar-item .item-body { border-top: 1px solid #f1f2f5; padding: 0.35rem 0; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-header {
  padding: 0.5rem 1rem 0.5rem 2.35rem; gap: 0.5rem; border-radius: 0;
}
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-header:hover { background: #f9fafb; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-header .subcategory-toggler {
  left: 0.75rem; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem;
  color: #6b7280; background: transparent; border: 0;
}
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-header .subcategory-toggler:hover { background: #eef2f7; color: #111827; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-link {
  font-size: 0.9rem; color: #374151; line-height: 1.35; flex: 1 1 auto; min-width: 0;
}
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-link:hover { color: #1d6ff2; }
.results-body .results-sidebar .sidebar-item .item-body .category-item[is-selected=true] > .category-header .category-link { color: #1d6ff2; font-weight: 600; }
.results-body .results-sidebar .sidebar-item .item-body .category-item[is-selected=true] > .category-header { background: #eaf1fe; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-count {
  background: #f3f4f6; color: #374151; font-weight: 600; font-size: 0.75rem; padding: 0.2rem 0.55rem; min-width: 1.6rem; flex: none;
}
.results-body .results-sidebar .sidebar-item .item-body .category-item[is-selected=true] > .category-header .category-count { background: #1d6ff2; color: #fff; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-subcategory { background: #fafbfc; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-subcategory .category-item .category-header { padding: 0.45rem 1rem 0.45rem 3.1rem; }
.results-body .results-sidebar .sidebar-item .item-body .category-item .category-subcategory .category-item .category-link { font-size: 0.85rem; color: #4b5563; }

/* toolbar */
.results-body .results-content .results-actions { gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.results-body .results-content .results-type .button { border-radius: 0.6rem; font-weight: 600; }
.results-body .results-content .results-type .refine-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; }
.results-body .results-content .results-type .refine-button::before { content: "\f1de"; font-family: FontAwesome; font-size: 0.9rem; }
.results-body .results-content .results-type .refine-button.is-open { background: #111827; border-color: #111827; }

/* Below desktop: filters sit under the toolbar, above results, as one tidy panel */
@media (max-width: 1199px) {
  .results-body .results-sidebar.is-inline { width: 100%; margin: 0 0 1rem; }
  .results-body .results-sidebar.is-inline .sidebar-wrapper {
    margin: 0; padding: 1rem; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 1rem;
  }
  .results-body .results-sidebar.is-inline .sidebar-wrapper::before {
    content: "Filter results"; display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.8125rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; margin: 0 0 0.75rem 0.15rem;
  }
  .results-body .results-sidebar.is-inline .sidebar-item + .banner { display: none; }
  .results-body .results-sidebar.is-inline .sidebar-item .item-header .item-title .item-attr,
  .results-body .results-sidebar.is-inline .sidebar-item .item-header .item-title .item-badge { display: inline-block; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .results-body .results-sidebar.is-inline .sidebar-wrapper { display: none; }
  .results-body .results-sidebar.is-inline .sidebar-wrapper .sidebar-item { display: block; }
}
@media (max-width: 767px) {
  .results-body .results-content .results-actions { gap: 0.6rem; }
  .results-body .results-content .results-type { margin-top: 0; }
  .results-body .results-content .results-type .button { height: 40px; }
  .results-body .results-sidebar.is-inline .sidebar-wrapper { padding: 0.85rem; border-radius: 0.9rem; }
  .results-body .results-sidebar.is-inline .sidebar-item .item-header { padding: 0.7rem 0.9rem; }
}
/* long lists scroll inside the panel instead of pushing results down */
.results-body .results-sidebar .sidebar-item .item-body { max-height: 26rem; overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 1199px) {
  .results-body .results-sidebar.is-inline .sidebar-item .item-body { max-height: 20rem; }
}
@media (min-width: 1200px) {
  .results-body .results-content .results-type .refine-button { display: none; }
}

/* ==========================================================================
   TREF DETAIL PAGE (2026-09-16) — modern polish, same layout
   ========================================================================== */
.details-listing { --td-text: #111827; --td-muted: #6b7280; --td-line: #e5e7eb; --td-brand: var(--highlight-base, #1d6ff2); }
.details-listing .custom-details-header,
.details-listing .detail-body { font-family: 'Inter', sans-serif; }

/* --- top identity bar --- */
.custom-details-header header { border-bottom: 1px solid #eef0f4; padding: 1.1rem 0; }
.custom-details-header .logo { gap: 1rem; }
.custom-details-header .logo img {
  height: 64px; width: 64px; object-fit: contain; border-radius: 0.9rem;
  border: 1px solid var(--td-line); background: #fff; padding: 4px;
}
.custom-details-header .logo-text h1 { font-size: 1.25rem; letter-spacing: -0.01em; color: var(--td-text); }
.custom-details-header .logo-text h1 .details-share { gap: 0.15rem; }
.custom-details-header .logo-text h1 .details-share a,
.custom-details-header .logo-text h1 .details-share .share-btn {
  width: 30px; height: 30px; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center;
  color: var(--td-muted); font-size: 0.9rem;
}
.custom-details-header .logo-text h1 .details-share a:hover,
.custom-details-header .logo-text h1 .details-share .share-btn:hover { background: #f3f4f6; color: var(--td-text); }
.custom-details-header .logo-text .details-categories { color: var(--td-muted); font-size: 0.8125rem; margin-top: 0.15rem; }
.custom-details-header .logo-text .details-categories a { color: var(--td-muted); }
.custom-details-header .logo-text .details-categories a:hover { color: var(--td-brand); }

/* --- section tabs --- */
.custom-details-header .details-header-navbar { background: #fff; border-bottom: 1px solid #eef0f4; position: sticky; top: 0; z-index: 30; }
.custom-details-header .details-header-navbar .container { gap: 0.25rem; border-bottom: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.custom-details-header .details-header-navbar .container::-webkit-scrollbar { display: none; }
.custom-details-header .tab-navbar { padding: 0.9rem 1rem; font-weight: 600; font-size: 0.875rem; color: var(--td-muted); text-transform: capitalize; white-space: nowrap; letter-spacing: -0.005em; }
.custom-details-header .tab-navbar:hover { color: var(--td-text); }
.custom-details-header .tab-navbar.is-selected { color: var(--td-brand); }
.custom-details-header .tab-navbar.is-selected::after { height: 2px; border-radius: 2px 2px 0 0; left: 1rem; right: 1rem; }

/* --- hero --- */
.custom-details-header .hero { min-height: 30rem; padding: 4rem 0 8rem; align-items: center; }
.custom-details-header .hero:before {
  background: linear-gradient(90deg, rgba(10, 14, 24, 0.82) 0%, rgba(10, 14, 24, 0.62) 45%, rgba(10, 14, 24, 0.18) 100%),
              linear-gradient(180deg, rgba(10, 14, 24, 0) 55%, rgba(10, 14, 24, 0.55) 100%);
}
.custom-details-header .hero h2 { font-size: 2.75rem; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); }
.custom-details-header .rating .details-reviews {
  display: inline-flex; gap: 0.5rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px);
  font-size: 0.875rem; margin-bottom: 1.25rem;
}
.custom-details-header .rating .details-reviews .reviews-stars { font-size: 0.85rem; }
.custom-details-header .rating .details-reviews .reviews-rating { font-weight: 700; }
.custom-details-header .hero p { font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.75rem; max-width: 36rem; }
.custom-details-header .hero-buttons .button { border-radius: 0.75rem; font-weight: 600; padding: 0.85rem 1.5rem; min-height: 0; }
.custom-details-header .hero-buttons .is-outline { border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); transition: background 0.15s ease; }
.custom-details-header .hero-buttons .is-outline:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* --- floating contact card --- */
.custom-details-header .contact-section { background: #f8fafc; padding: 0; }
.custom-details-header .contact-box {
  margin-top: -6rem; padding: 1.75rem 2rem; border-radius: 1.25rem; border: 1px solid var(--td-line);
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.04), 0 24px 48px -24px rgb(17 24 39 / 0.35);
}
.custom-details-header .contact-box:hover { box-shadow: 0 1px 2px rgb(17 24 39 / 0.04), 0 24px 48px -24px rgb(17 24 39 / 0.35); }
.custom-details-header .contact-box h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.25rem; color: var(--td-text); }
.custom-details-header .contact-grid { gap: 1.25rem; margin-bottom: 1.5rem; }
.custom-details-header .contact-item { align-items: center; gap: 0.875rem; padding: 0.75rem 0.9rem; border: 1px solid #eef0f4; border-radius: 0.9rem; background: #fbfcfe; min-width: 0; }
.custom-details-header .contact-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: #eaf1fe; }
.custom-details-header .contact-icon svg { width: 20px; height: 20px; }
.custom-details-header .contact-info { min-width: 0; }
.custom-details-header .contact-info p:first-child { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--td-muted); margin-bottom: 0.15rem; }
.custom-details-header .contact-info a,
.custom-details-header .contact-info p:last-child { font-weight: 600; font-size: 0.9375rem; color: var(--td-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.custom-details-header .contact-box .button { border-radius: 0.75rem; font-weight: 600; height: 48px; padding: 0 1.5rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; }
.custom-details-header .contact-box .button:hover { transform: none; filter: brightness(0.95); }

/* --- body --- */
.details-default > .detail-body { background: #f8fafc; }
.details-default > .detail-body .detail-body-content { padding-top: 2.5rem; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item { margin-bottom: 2rem; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item .tab-item-heading .heading,
.details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-hours .tab-item-heading .heading:before,
.details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-photos .tab-item-heading .heading:before,
.details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-reviews .tab-item-heading .heading:before,
.details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-about .ckeditor-content:before {
  font-family: 'Inter', sans-serif; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; color: var(--td-text);
}

/* overview card */
.details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-about .ckeditor-content {
  border-radius: 1.25rem; border: 1px solid var(--td-line); padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.04);
}

/* features */
.details-default > .detail-body .detail-body-content .tab-content .tab-item-features .tab-item-content { gap: 0.75rem; margin-left: 0; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-features .item-features {
  margin: 0; width: calc(50% - 0.375rem); padding: 0.85rem 1rem; gap: 0.75rem;
  border-radius: 0.9rem; border: 1px solid var(--td-line); background: #fff; color: var(--td-text); font-weight: 500; font-size: 0.9375rem;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.03); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.details-default > .detail-body .detail-body-content .tab-content .tab-item-features .item-features:hover { border-color: #cfd8e6; box-shadow: 0 6px 16px -12px rgb(17 24 39 / 0.3); }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-features .item-features .icon {
  margin: 0; width: 40px; height: 40px; border-radius: 0.65rem; background: #eaf1fe; color: var(--td-brand);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* photos */
.details-default > .detail-body .detail-body-content .tab-content .tab-item-photos .photos-list .photos-item { border-radius: 0.9rem; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-photos .photos-list .photos-item img { transition: transform 0.35s ease; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-photos .photos-list .photos-item:hover img { transform: scale(1.04); }

/* sidebar cards */
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item {
  background: #fff; border: 1px solid var(--td-line); border-radius: 1.25rem; padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 1px 2px rgb(17 24 39 / 0.04); margin-bottom: 1.25rem;
}
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item .tab-item-heading { margin-bottom: 1rem; }
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item .tab-item-heading .heading,
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item.tab-item-hours .tab-item-heading .heading:before { font-size: 1rem; }

/* contact list */
.details-default > .detail-body .detail-body-content .tab-content .tab-right .tab-item-contact-us .info-list .contact-item {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.55rem 0; font-size: 0.9375rem; color: var(--td-text); line-height: 1.45;
  border-bottom: 1px solid #f1f2f5;
}
.details-default > .detail-body .detail-body-content .tab-content .tab-right .tab-item-contact-us .info-list .contact-item .fa,
.details-default > .detail-body .detail-body-content .tab-content .tab-right .tab-item-contact-us .info-list .contact-item .icon { color: var(--td-brand); width: 1.1rem; text-align: center; flex: none; margin-top: 0.15rem; }
.details-default > .detail-body .detail-body-content .tab-content .tab-right .tab-item-contact-us .info-list .contact-item a { color: var(--td-text); word-break: break-word; }
.details-default > .detail-body .detail-body-content .tab-content .tab-right .tab-item-contact-us .info-list .contact-item a:hover { color: var(--td-brand); }
.details-default > .detail-body .detail-body-content .tab-content .tab-right .tab-item-contact-us .info-list .button,
.details-default > .detail-body .detail-body-content .tab-content .tab-item-location .button {
  margin-top: 1rem; border-radius: 0.75rem; font-weight: 600; height: 46px; display: inline-flex; align-items: center; justify-content: center; width: 100%;
}

/* hours */
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-status,
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-heading {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: #fff7e6; color: #b45309; font-size: 0.8125rem; font-weight: 600;
}
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-heading[data-status-time=open-now],
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-heading[data-status-time=opened] { background: #ecfdf5; color: #047857; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-heading[data-status-time=closed-today],
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-heading[data-status-time=closed-now],
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-heading[data-status-time=open-at] { background: #fef2f2; color: #b91c1c; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content { margin-top: 0.85rem; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item {
  justify-content: space-between; align-items: center; margin: 0; padding: 0.6rem 0; border-bottom: 1px solid #f1f2f5; font-size: 0.875rem;
}
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item:not(:first-child) { margin-top: 0; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item:last-child { border-bottom: 0; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item .day {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--td-muted); width: auto;
}
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item .hours-list { color: var(--td-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item .hour.closed,
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item .hour.opened {
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: #fef2f2; color: #b91c1c;
}
.details-default > .detail-body .detail-body-content .tab-content .tab-item-hours .hours-content .hours-more .hours-item .hour.open { background: #ecfdf5; color: #047857; }

/* location */
.details-default > .detail-body .detail-body-content .tab-content .tab-item-location #map_canvas,
.details-default > .detail-body .detail-body-content .tab-content .tab-item-location .street-view-section > div,
.details-default > .detail-body .detail-body-content .tab-content .tab-item-location .street-view-section iframe { border-radius: 0.9rem; overflow: hidden; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-location .location-address { margin-top: 0.85rem; font-size: 0.875rem; color: #374151; line-height: 1.5; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-location .street-view-section { margin-top: 1rem; }

/* reviews / classifieds headings inherit; load more button */
.details-default > .detail-body .tab-content .button.is-primary { border-radius: 0.75rem; font-weight: 600; }

/* --- tablet / mobile --- */
@media (max-width: 991px) {
  .custom-details-header .hero { min-height: 24rem; padding: 3rem 0 7rem; }
  .custom-details-header .hero h2 { font-size: 2.25rem; }
  .custom-details-header .contact-box { margin-top: -5rem; padding: 1.5rem; }
  .details-default > .detail-body .detail-body-content .tab-content .tab-item-features .item-features { width: 100%; }
}
@media (max-width: 767px) {
  .custom-details-header header { padding: 0.85rem 0; }
  .custom-details-header .logo img { height: 48px; width: 48px; border-radius: 0.7rem; }
  .custom-details-header .logo-text h1 { font-size: 1.0625rem; }
  .custom-details-header .tab-navbar { padding: 0.8rem 0.85rem; font-size: 0.8125rem; }
  .custom-details-header .hero { min-height: 0; padding: 2.5rem 0 6.5rem; }
  .custom-details-header .hero h2 { font-size: 1.85rem; }
  .custom-details-header .hero p { font-size: 0.9375rem; margin-bottom: 1.25rem; }
  .custom-details-header .hero-buttons .button { width: 100%; }
  .custom-details-header .contact-box { margin-top: -4.5rem; padding: 1.25rem; border-radius: 1rem; }
  .custom-details-header .contact-grid { gap: 0.6rem; margin-bottom: 1rem; }
  .custom-details-header .contact-item { padding: 0.6rem 0.75rem; }
  .details-default > .detail-body .detail-body-content { padding-top: 1.75rem; }
  .details-default > .detail-body .detail-body-content .tab-content .tab-item { margin-bottom: 1.5rem; }
  .details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item { padding: 1.1rem 1.1rem 1.25rem; border-radius: 1rem; }
  .details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-about .ckeditor-content { padding: 1rem; border-radius: 1rem; }
  /* renamed headings (Operating Hours / Photo Gallery / Customer Reviews) must stay hidden on mobile too */
  .details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-hours .tab-item-heading .heading,
  .details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-photos .tab-item-heading .heading,
  .details-default > .detail-body .detail-body-content .tab-content .tab-item.tab-item-reviews .tab-item-heading .heading { font-size: 0 !important; }
}
/* detail fixes: features container is a grid (width:auto), keep renamed headings hidden in the sidebar */
.details-default > .detail-body .detail-body-content .tab-content .tab-item-features .tab-item-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.details-default > .detail-body .detail-body-content .tab-content .tab-item-features .item-features { width: auto; }
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item.tab-item-hours .tab-item-heading .heading,
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item.tab-item-photos .tab-item-heading .heading,
.details-default.details-listing > .detail-body .detail-body-content .tab-content.has-sidebar .tab-right .tab-item.tab-item-reviews .tab-item-heading .heading { font-size: 0; }
@media (max-width: 991px) {
  .details-default > .detail-body .detail-body-content .tab-content .tab-item-features .tab-item-content { grid-template-columns: 1fr; }
}

/* TREF DETAIL — make the section tabs unmistakable (segmented pill bar, all screens) */
.custom-details-header .details-header-navbar { background: #fff; border-bottom: 1px solid #eef0f4; padding: 0.6rem 0; }
.custom-details-header .details-header-navbar .container {
  display: flex; align-items: center; gap: 0.25rem; padding: 0.3rem; width: max-content; max-width: 100%;
  background: #f1f3f7; border: 1px solid #e5e7eb; border-radius: 999px; margin-left: auto; margin-right: auto;
  overflow-x: auto; scrollbar-width: none;
}
.custom-details-header .details-header-navbar .container::-webkit-scrollbar { display: none; }
.custom-details-header .tab-navbar {
  padding: 0.55rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: 0.875rem; color: #4b5563;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-details-header .tab-navbar:hover { background: #fff; color: #111827; }
.custom-details-header .tab-navbar.is-selected { background: var(--highlight-base, #1d6ff2); color: #fff; box-shadow: 0 4px 12px -6px rgb(29 111 242 / 0.6); }
.custom-details-header .tab-navbar.is-selected::after { display: none; }

@media (max-width: 768px) {
  /* show the same scrollable pill bar on mobile instead of hiding the tabs behind a hamburger */
  .custom-details-header .details-header-navbar { display: block !important; padding: 0.5rem 0; position: sticky; top: 0; z-index: 30; }
  .custom-details-header .details-header-navbar .container {
    width: auto; margin: 0 1rem; justify-content: flex-start; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .custom-details-header .tab-navbar { flex: none; scroll-snap-align: start; padding: 0.5rem 0.9rem; font-size: 0.8125rem; }
  .custom-details-header .tab-nav-mobile,
  .custom-details-header .menu-toggle { display: none !important; }
}
@media (max-width: 768px) {
  .custom-details-header .details-header-navbar { position: sticky; }
  .custom-details-header .details-header-navbar::after {
    content: "\f105"; font-family: FontAwesome; font-size: 0.9rem; color: #6b7280;
    position: absolute; top: 0.5rem; bottom: 0.5rem; right: 1rem; width: 3.25rem; border-radius: 0 999px 999px 0;
    display: flex; align-items: center; justify-content: flex-end; padding-right: 0.8rem; pointer-events: none;
    background: linear-gradient(90deg, rgba(241, 243, 247, 0), #f1f3f7 55%);
  }
}

/* TREF DETAIL — phones & tablets keep the toggle drawer; make it obviously a menu */
@media (max-width: 1024px) {
  .custom-details-header .details-header-navbar { display: none !important; }
  .custom-details-header .details-header-navbar::after { display: none; }
  .custom-details-header .tab-nav-mobile { display: block !important; }
  .custom-details-header .header-content .details-claim .link { display: none; }
  .custom-details-header .header-content .tab-mobile-menu .details-claim .link { display: block; text-align: center; }
  .custom-details-header .tab-mobile-header { border: none; padding: 0; }
  .custom-details-header .tab-nav-mobile .container { padding: 0; }

  .custom-details-header .menu-toggle {
    display: inline-flex !important; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.95rem; border-radius: 0.75rem; cursor: pointer;
    background: var(--highlight-base, #1d6ff2); color: #fff; font-weight: 600; font-size: 0.875rem;
    box-shadow: 0 6px 16px -8px rgb(29 111 242 / 0.7); white-space: nowrap;
  }
  .custom-details-header .menu-toggle .fa { font-size: 1rem; }
  .custom-details-header .menu-toggle .tab-mobile-trigger-label { font-family: 'Inter', sans-serif; }

  .custom-details-header .tab-mobile-menu { padding: 1.25rem 1.25rem 2rem; border-radius: 1.25rem 0 0 1.25rem; }
  .custom-details-header .tab-mobile-menu-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0 0.25rem 0.9rem; margin-bottom: 0.75rem; border-bottom: 1px solid #eef0f4;
  }
  .custom-details-header .tab-mobile-menu-title {
    font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7280;
  }
  .custom-details-header .tab-mobile-close {
    width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; color: #111827; font-size: 1rem; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .custom-details-header .tab-mobile-menu .tab-mobile-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin: 0 0 0.35rem; padding: 0.85rem 1rem; border-radius: 0.8rem; border: 0; background: transparent;
    font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 600; color: #374151; box-shadow: none;
  }
  .custom-details-header .tab-mobile-menu .tab-mobile-btn::after { content: "\f105"; font-family: FontAwesome; color: #9ca3af; font-size: 0.85rem; }
  .custom-details-header .tab-mobile-menu .tab-mobile-btn:hover { background: #f3f4f6; }
  .custom-details-header .tab-mobile-menu .tab-mobile-btn.is-selected { background: var(--highlight-base, #1d6ff2); color: #fff; }
  .custom-details-header .tab-mobile-menu .tab-mobile-btn.is-selected::after { color: #fff; content: "\f00c"; }
  .custom-details-header .tab-mobile-menu .tab-mobile-btn.is-selected::before { display: none; }
  .custom-details-header .tab-mobile-menu .details-claim { margin-top: 1rem; }
  .custom-details-header .tab-mobile-menu .details-claim .link { border-radius: 0.75rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .custom-details-header .header-content { flex-direction: row; align-items: center; }
}

/* TREF DETAIL — Classifieds strip on the overview + Classifieds tab: tidy product tiles */
.tref-ov-featured { margin-top: 2rem !important; padding: 1.5rem 1.5rem 1.75rem !important; background: #fff; border: 1px solid #e7ebf2 !important; border-radius: 1.1rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.tref-ov-featured h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem !important; font-size: 1.125rem !important; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.tref-ov-featured h2::before { content: "\f291"; font: normal normal normal 15px/1 FontAwesome; color: #2f6bff; background: #eaf0ff; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.tref-ov-featured .tref-ov-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0.9rem !important; }
.tref-ov-featured .card,
.details-default .tab-item-classifieds .cards-list .card { display: flex !important; flex-direction: column !important; margin: 0 !important; width: auto !important; background: #fff; border: 1px solid #e7ebf2; border-radius: 0.9rem; overflow: hidden; box-shadow: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tref-ov-featured .card:hover,
.details-default .tab-item-classifieds .cards-list .card:hover { transform: translateY(-2px); border-color: #c7d4f5; box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.tref-ov-featured .card .picture,
.details-default .tab-item-classifieds .cards-list .card .picture { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; background: #f6f8fb; border-bottom: 1px solid #eef1f6; overflow: hidden; }
.tref-ov-featured .card .picture picture,
.tref-ov-featured .card .picture img,
.details-default .tab-item-classifieds .cards-list .card .picture picture,
.details-default .tab-item-classifieds .cards-list .card .picture img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 0.5rem; }
.tref-ov-featured .card .content,
.details-default .tab-item-classifieds .cards-list .card .content { display: flex !important; flex-direction: column !important; flex: 1 1 auto; padding: 0.75rem 0.8rem 0.85rem !important; gap: 0.3rem; }
.tref-ov-featured .card .content .title,
.details-default .tab-item-classifieds .cards-list .card .content .title { order: 1; margin: 0 !important; font-size: 0.875rem !important; line-height: 1.35 !important; font-weight: 600 !important; color: #111827 !important; min-height: 2.7em; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.tref-ov-featured .card .content .title:hover,
.details-default .tab-item-classifieds .cards-list .card .content .title:hover { color: #2f6bff !important; }
.tref-ov-featured .card .content .categories,
.details-default .tab-item-classifieds .cards-list .card .content .categories { order: 2; margin: 0 !important; font-size: 0.75rem !important; line-height: 1.3; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tref-ov-featured .card .content .categories .link,
.details-default .tab-item-classifieds .cards-list .card .content .categories .link { font-size: inherit !important; color: #6b7280 !important; }
.tref-ov-featured .card .content .categories .link:hover,
.details-default .tab-item-classifieds .cards-list .card .content .categories .link:hover { color: #2f6bff !important; }
.tref-ov-featured .card .content .price,
.details-default .tab-item-classifieds .cards-list .card .content .price { order: 3; margin: 0.35rem 0 0 !important; padding-top: 0.5rem; border-top: 1px solid #f0f2f6; font-size: 1rem !important; font-weight: 700 !important; color: #0f172a !important; letter-spacing: -0.01em; }
.tref-ov-featured .tref-ov-more { display: inline-flex !important; align-items: center; gap: 0.45rem; margin: 1.25rem auto 0 !important; padding: 0.7rem 1.5rem !important; font-size: 0.875rem !important; font-weight: 600; border-radius: 999px !important; background: #fff !important; color: #2f6bff !important; border: 1.5px solid #c7d4f5 !important; box-shadow: none; }
.tref-ov-featured .tref-ov-more::after { content: "\f105"; font: normal normal normal 13px/1 FontAwesome; }
.tref-ov-featured .tref-ov-more:hover { background: #eaf0ff !important; border-color: #2f6bff !important; }
.tref-ov-featured { text-align: center; }
.tref-ov-featured h2, .tref-ov-featured .tref-ov-grid { text-align: left; }
@media (max-width: 1199px) { .tref-ov-featured .tref-ov-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 820px) { .tref-ov-featured .tref-ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) {
  .tref-ov-featured { padding: 1.1rem 1rem 1.25rem !important; border-radius: 0.9rem; }
  .tref-ov-featured .tref-ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.7rem !important; }
  .tref-ov-featured .card:nth-child(n+5) { display: none !important; }
}
.tref-ov-featured .card .picture,
.details-default .tab-item-classifieds .cards-list .card .picture { background: #fff; }
.tref-ov-featured .card .picture img,
.details-default .tab-item-classifieds .cards-list .card .picture img { padding: 0.35rem; transition: transform .2s ease; }
.tref-ov-featured .card:hover .picture img,
.details-default .tab-item-classifieds .cards-list .card:hover .picture img { transform: scale(1.04); }

/* TREF DETAIL — Classifieds TAB: 5 / 3 / 2 grid, working filters, polished toolbar */
.details-default .tab-item-classifieds .listing-classifieds-cards-wrapper .cards-default .container { width: auto; max-width: none; padding: 0; }
.details-default .tab-item-classifieds .listing-classifieds-cards-wrapper .cards-list { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0 !important; width: auto !important; }
.details-default .tab-item-classifieds .listing-classifieds-cards-wrapper .cards-list .card { margin: 0 !important; width: auto !important; max-width: none !important; min-width: 0 !important; }
/* the filter's hidden class must beat the display:flex on the card */
.details-default .tab-item-classifieds .cards-list .card.tref-atf-hidden,
.details-default .tab-item-classifieds .cards-list .card.tref-cf-hidden { display: none !important; }
@media (max-width: 1199px) { .details-default .tab-item-classifieds .listing-classifieds-cards-wrapper .cards-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .details-default .tab-item-classifieds .listing-classifieds-cards-wrapper .cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .details-default .tab-item-classifieds .listing-classifieds-cards-wrapper .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; } }

/* toolbar */
.details-default .tab-item-classifieds .listing-classifieds-toolbar { margin: 0 0 1.25rem; padding: 0 0 1.25rem; border-bottom: 1px solid #eef1f6; }
.details-default .tab-item-classifieds .listing-classifieds-toolbar-row { align-items: center; gap: 0.75rem 1rem; }
.details-default .tab-item-classifieds .listing-classifieds-category-navbar { background: #f6f8fb; border: 1px solid #e7ebf2; border-radius: 0.9rem; padding: 0.5rem 0.6rem; }
.details-default .tab-item-classifieds .listing-classifieds-category-nav { gap: 0.4rem; }
.details-default .tab-item-classifieds .listing-classifieds-category-nav > .listing-classifieds-category-tab,
.details-default .tab-item-classifieds .listing-classifieds-category-nav > .listing-classifieds-dropdown > .listing-classifieds-category-trigger { font-size: 0.8125rem; font-weight: 600; color: #374151; padding: 0.45rem 0.9rem; border-color: #e3e8f0; box-shadow: none; }
.details-default .tab-item-classifieds .listing-classifieds-category-nav > .listing-classifieds-category-tab:hover { color: #2f6bff; border-color: #c7d4f5; background: #fff; }
.details-default .tab-item-classifieds .listing-classifieds-category-nav > .listing-classifieds-category-tab.is-selected { background: #2f6bff; border-color: #2f6bff; color: #fff; box-shadow: 0 4px 12px -6px rgba(47,107,255,.7); }
.details-default .tab-item-classifieds .listing-classifieds-search { position: relative; flex: 0 0 260px; }
.details-default .tab-item-classifieds .listing-classifieds-search::before { content: "\f002"; font: normal normal normal 14px/1 FontAwesome; color: #9ca3af; position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.details-default .tab-item-classifieds .listing-classifieds-search-input { min-height: 2.75rem; height: 2.75rem; padding: 0 1rem 0 2.5rem; border-radius: 999px; border: 1px solid #e3e8f0; background: #fff; font-size: 0.875rem; box-shadow: none; }
.details-default .tab-item-classifieds .listing-classifieds-search-input:focus { border-color: #2f6bff; outline: none; box-shadow: 0 0 0 3px rgba(47,107,255,.15); }
.details-default .tab-item-classifieds .listing-classifieds-dropdown-menu { border-radius: 0.75rem; border: 1px solid #e7ebf2; box-shadow: 0 10px 30px rgba(15,23,42,.12); padding: 0.35rem; }
.details-default .tab-item-classifieds .listing-classifieds-dropdown-menu .listing-classifieds-category-tab { border-radius: 0.5rem; font-size: 0.8125rem; }
@media (max-width: 767px) {
  .details-default .tab-item-classifieds .listing-classifieds-toolbar-row { flex-direction: column-reverse; align-items: stretch; gap: 0.6rem; }
  .details-default .tab-item-classifieds .listing-classifieds-search { flex: 0 0 auto; width: 100%; }
  .details-default .tab-item-classifieds .listing-classifieds-category-navbar { padding: 0.4rem; border-radius: 0.75rem; }
  .details-default .tab-item-classifieds .listing-classifieds-category-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 1px; }
  .details-default .tab-item-classifieds .listing-classifieds-category-nav::-webkit-scrollbar { display: none; }
  .details-default .tab-item-classifieds .listing-classifieds-category-nav > .listing-classifieds-category-tab,
  .details-default .tab-item-classifieds .listing-classifieds-category-nav > .listing-classifieds-dropdown { flex: 0 0 auto; white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .details-default .tab-item-classifieds .listing-classifieds-toolbar-row { flex-direction: column-reverse; align-items: stretch; gap: 0.75rem; }
  .details-default .tab-item-classifieds .listing-classifieds-search { flex: 0 0 auto; width: 100%; max-width: 26rem; }
}

/* TREF CATEGORY MARQUEE — wider than the search box */
@media (min-width: 992px) { .tref-cat-marquee { max-width: 64rem; } }
@media (min-width: 1300px) { .tref-cat-marquee { max-width: 70rem; } }

/* TREF CHECKOUT — "Create your listing" next-step card on the payment-completed page */
.payment-overview .tref-next-step {
  position: relative;
  margin: 0 0 28px;
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f3f8ff 0%, #ffffff 60%);
  border: 1px solid #cfe0ff;
  box-shadow: 0 10px 30px rgba(19, 125, 247, 0.12), 0 1px 3px rgba(16, 24, 40, 0.06);
}
.payment-overview .tref-next-step::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #137df7, #4aa6ff);
}
.payment-overview .tref-ns-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #137df7;
  margin-bottom: 14px;
}
.payment-overview .tref-ns-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #137df7;
  box-shadow: 0 0 0 0 rgba(19, 125, 247, 0.5);
  animation: tref-ns-pulse 1.8s ease-out infinite;
}
@keyframes tref-ns-pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 125, 247, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(19, 125, 247, 0); }
}
.payment-overview .tref-ns-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.payment-overview .tref-ns-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #137df7, #4aa6ff);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(19, 125, 247, 0.35);
}
.payment-overview .tref-ns-text h3 {
  margin: 2px 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}
.payment-overview .tref-ns-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
}
.payment-overview .tref-ns-text p strong { color: #0f172a; }
.payment-overview .tref-ns-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
}
.payment-overview .tref-ns-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}
.payment-overview .tref-ns-steps li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e3efff;
  color: #137df7;
  font-size: 12px;
  font-weight: 700;
}
.payment-overview .tref-ns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #137df7 0%, #0b63c9 100%);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(19, 125, 247, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.payment-overview .tref-ns-btn:hover,
.payment-overview .tref-ns-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(19, 125, 247, 0.45);
}
.payment-overview .tref-ns-btn .tref-ns-arrow {
  font-size: 14px;
  transition: transform 0.15s ease;
}
.payment-overview .tref-ns-btn:hover .tref-ns-arrow { transform: translateX(4px); }
.payment-overview .tref-ns-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #667085;
}
/* Demote the secondary product list when the next-step card is shown */
.payment-overview .tref-next-step + .payment-overview-title {
  font-size: 16px;
  color: #344054;
}
@media (max-width: 767px) {
  .payment-overview .tref-next-step { padding: 18px 16px 16px; }
  .payment-overview .tref-ns-body { gap: 12px; }
  .payment-overview .tref-ns-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .payment-overview .tref-ns-text h3 { font-size: 19px; }
  .payment-overview .tref-ns-steps { gap: 6px 14px; }
  .payment-overview .tref-ns-btn { font-size: 16px; min-height: 50px; }
}

/* ===== TREF MOBILE — AI-mode search form in normal flow (stop overlap with Browse by category) ===== */
@media (max-width: 768px) {
  /* AI form participates in layout so the wrapper grows with it */
  .tref-lp .search-forms-wrapper.ai-mode-active .gradient-container {
    position: static;
    padding: 0;
  }
  .tref-lp .search-forms-wrapper.ai-mode-active .content-form.ai-mode {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    background: none;
  }
  .tref-lp .search-forms-wrapper.ai-mode-active .content-form.normal-mode {
    display: none;
  }
  /* AI input matches the standard mobile inputs */
  .tref-lp #searchTerm.ai-search-input,
  .tref-lp .ai-search-input.form-control-reset,
  .tref-lp .gradient-container #searchTerm.ai-search-input,
  .tref-lp .gradient-container .form-control-reset.ai-search-input {
    min-height: 46px !important;
    height: 46px;
    padding: 0 2.5rem 0 2.5rem !important;
    font-size: 0.9375rem !important;
    border-radius: 0.625rem !important;
    line-height: 46px;
  }
  .tref-lp .search-inputs--ai {
    gap: 0.625rem;
  }
  .tref-lp .search-inputs--ai .ai-search-container .search-icon {
    width: 18px;
    height: 18px;
    left: 14px;
  }
  .tref-lp .location-btn--ai {
    width: 100%;
  }
  /* a little air above the categories */
  .tref-new-hp .browse-mobile {
    margin-top: 1.75rem;
  }
}

/* ===== App mode only (installed Tref app / PWA) ===== */
@media (display-mode: standalone), (display-mode: fullscreen) {
  footer.footer, .translate-bar, .admin-bar { display: none !important; }
  html, body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
  a, button, .navbar-link, .tref-cat-chip { -webkit-user-select: none; user-select: none; }
  body { padding-bottom: env(safe-area-inset-bottom); }
  header.header { position: sticky; top: 0; z-index: 1000; padding-top: env(safe-area-inset-top); }
  .navbar-link, .tref-cat-chip { min-height: 44px; }
}

/* ===== App mode bottom tab bar (installed Tref app / PWA only) =====
   Markup: app/Resources/views/base.html.twig (nav.tref-app-tabbar, inline display:none).
   Sits below the slide-out menu panel (z-index 300) so the open panel covers it. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .tref-app-tabbar {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 290;
    box-sizing: border-box;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #2196f3;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.15);
  }
  .tref-app-tabbar a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
  }
  .tref-app-tabbar a.is-active { color: #fff; }
  .tref-app-tabbar svg { width: 22px; height: 22px; flex: none; }
  /* room for the bar so it never covers page content */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ==== Tref AI chip inside the search box (2026-10-16) ====
   Markup: searchbox-type-2(.thin).html.twig (.tref-aichip boxes only). Script: assets/js/search/tref-aichip.js.
   The old "AI Mode" pill stays in the page for ai-search.js but is hidden here. */
.tref-new-hp.tref-aichip .ai-mode-toggle.tref-ai-legacy { display: none !important; }
.tref-new-hp.tref-aichip:not(.tref-aic-ready) .tref-aic-tools { visibility: hidden; }

.tref-new-hp.tref-aichip .search-input-container { position: relative; }
.tref-new-hp.tref-aichip .tref-aic-tools {
    position: absolute; top: 0; bottom: 0; right: 8px; z-index: 6;
    display: flex; align-items: center; gap: 2px;
}
/* room for the chip (and the mic, when shown) so typed text never runs under them */
.tref-new-hp.tref-aichip #searchInput,
.tref-new-hp.tref-aichip #searchTerm { padding-right: 136px !important; }
.tref-new-hp.tref-aichip .search-input-container:has(.tref-aic-mic:not([hidden])) #searchInput,
.tref-new-hp.tref-aichip .search-input-container:has(.tref-aic-mic:not([hidden])) #searchTerm { padding-right: 180px !important; }
.tref-new-hp.tref-aichip #searchPlaceholder { right: 136px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tref-new-hp.tref-aichip .search-input-container:has(.tref-aic-mic:not([hidden])) #searchPlaceholder { right: 180px !important; }

.tref-new-hp.tref-aichip .tref-aic-chip {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 36px; margin: 0; padding: 0 14px 0 11px; box-sizing: border-box;
    border: 1px solid rgba(33, 150, 243, .35); border-radius: 18px;
    background: #eef6fe; color: #2196f3; box-shadow: none;
    font: 600 14px/1 Inter, sans-serif; letter-spacing: 0; white-space: nowrap;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .15s, border-color .15s, color .15s;
}
.tref-new-hp.tref-aichip .tref-aic-chip::after { content: ""; position: absolute; inset: -4px -2px; } /* 44px tap target */
.tref-new-hp.tref-aichip .tref-aic-chip:hover { background: #dcedfd; border-color: #2196f3; color: #1976d2; }
.tref-new-hp.tref-aichip .tref-aic-chip:focus-visible,
.tref-new-hp.tref-aichip .tref-aic-mic:focus-visible { outline: 2px solid #2196f3; outline-offset: 2px; }
/* the site positions every icon in the search box like the magnifier; not these */
.tref-new-hp.tref-aichip .tref-aic-tools svg {
    position: static !important; inset: auto !important; transform: none !important; margin: 0 !important;
    flex: 0 0 auto; display: block; pointer-events: none;
}
.tref-new-hp.tref-aichip .tref-aic-chip, .tref-new-hp.tref-aichip .tref-aic-mic { flex: 0 0 auto; width: auto; min-width: 0; max-width: none; }
.tref-new-hp.tref-aichip .tref-aic-mic { width: 40px !important; }
.tref-new-hp.tref-aichip .tref-aic-chip.is-on { background: #2196f3; border-color: #2196f3; color: #fff; padding-right: 10px; }
.tref-new-hp.tref-aichip .tref-aic-chip.is-on:hover { background: #1976d2; border-color: #1976d2; color: #fff; }
.tref-new-hp.tref-aichip .tref-aic-chip .tref-aic-x { margin-left: 2px; opacity: .9; }
.tref-new-hp.tref-aichip .tref-aic-short { display: none; }

.tref-new-hp.tref-aichip .tref-aic-mic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: #6b7280; box-shadow: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tref-new-hp.tref-aichip .tref-aic-mic[hidden] { display: none; }
.tref-new-hp.tref-aichip .tref-aic-mic:hover { color: #2196f3; background: transparent; }
.tref-new-hp.tref-aichip .tref-aic-mic.is-listening { color: #2196f3; animation: trefAicPulse 1.4s ease-in-out infinite; }
.tref-new-hp.tref-aichip .tref-aic-mic.is-blocked { color: #e53935; }
@keyframes trefAicPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.15); } }

/* AI mode: soft blue gradient outline on the one box */
.tref-new-hp.tref-aichip #aiHeaderSearchForm #searchTerm {
    border: 2px solid transparent !important;
    background: linear-gradient(#f7fbff, #f7fbff) padding-box,
                linear-gradient(100deg, #2196f3, #7b8cff 45%, #26c6da) border-box !important;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, .10), 0 4px 14px rgba(33, 150, 243, .12) !important;
}
.tref-new-hp.tref-aichip #aiHeaderSearchForm #searchTerm:focus {
    box-shadow: 0 0 0 4px rgba(33, 150, 243, .18), 0 4px 14px rgba(33, 150, 243, .16) !important;
    outline: none;
}
.tref-new-hp.tref-aichip #aiHeaderSearchForm #searchTerm { text-overflow: ellipsis; }
.tref-new-hp.tref-aichip #aiHeaderSearchForm #searchTerm::placeholder { color: #6b86a6; text-overflow: ellipsis; }

/* AI mode: the submit arrow becomes a sparkle arrow */
.tref-new-hp.tref-aichip #aiHeaderSearchForm .search-btn .btn-content > svg { display: none; }
.tref-new-hp.tref-aichip #aiHeaderSearchForm .search-btn .btn-content::after {
    content: ""; display: inline-block; width: 18px; height: 18px; vertical-align: middle; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h15'/%3E%3Cpath d='m13 8 6 6-6 6'/%3E%3Cpath fill='%23000' stroke-width='1' d='M7 2.5c.5 1.6 1 2.1 2.5 2.5C8 5.4 7.5 5.9 7 7.5 6.5 5.9 6 5.4 4.5 5 6 4.6 6.5 4.1 7 2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h15'/%3E%3Cpath d='m13 8 6 6-6 6'/%3E%3Cpath fill='%23000' stroke-width='1' d='M7 2.5c.5 1.6 1 2.1 2.5 2.5C8 5.4 7.5 5.9 7 7.5 6.5 5.9 6 5.4 4.5 5 6 4.6 6.5 4.1 7 2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Ask AI" suggestion row */
.tref-sc-row.tref-sc-ask .tref-sc-icon { background: #2196f3; color: #fff; }
.tref-sc-row.tref-sc-ask .tref-sc-action { color: #2196f3; }

/* phones: sparkle + "AI" */
@media (max-width: 480px) {
    .tref-new-hp.tref-aichip .tref-aic-full { display: none; }
    .tref-new-hp.tref-aichip .tref-aic-short { display: inline; }
    .tref-new-hp.tref-aichip .tref-aic-tools { right: 5px; gap: 0; }
    .tref-new-hp.tref-aichip .tref-aic-chip { height: 34px; padding: 0 11px 0 9px; font-size: 13.5px; gap: 4px; }
    .tref-new-hp.tref-aichip .tref-aic-chip.is-on { padding-right: 8px; }
    .tref-new-hp.tref-aichip #searchInput,
    .tref-new-hp.tref-aichip #searchTerm { padding-right: 84px !important; }
    .tref-new-hp.tref-aichip .search-input-container:has(.tref-aic-mic:not([hidden])) #searchInput,
    .tref-new-hp.tref-aichip .search-input-container:has(.tref-aic-mic:not([hidden])) #searchTerm { padding-right: 122px !important; }
    .tref-new-hp.tref-aichip #searchPlaceholder { right: 84px !important; }
    .tref-new-hp.tref-aichip .search-input-container:has(.tref-aic-mic:not([hidden])) #searchPlaceholder { right: 122px !important; }
}
/* ==== end Tref AI chip ==== */
