.filter-section-header {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Align article (products) tabs/select to homepage structure */
.article-page .nav-tabs-custom {
  background: var(--nav-bg, #ffffff);
  border-radius: 40px 40px 0 0;
  border: 2px solid rgb(0, 0, 0);
  --nav-text: rgb(0, 0, 0);
  width: 58%;
  gap: 45px;
  padding-top: 10px;
  /* padding-bottom: 25px; */
}

/* Ensure button colors mirror homepage inside article page */
.article-page .nav-tabs-custom button {
  color: var(--nav-text, white);
}
.article-page .nav-tabs-custom button.active,
.article-page .nav-tabs-custom button:hover {
  color: #000000 !important;
  border-bottom: 2px solid #cc1a1a;
}

.article-page .custom-select-wrapper {
  width: 60%;
}

/* Reset select visuals to homepage style inside article page */
.article-page .custom-select {
  border-radius: 40px;
  padding: 1.8rem 3rem;
  width: 100%;
  font-size: 1.6rem;
  font-weight: 600;
  border: 3px solid #e4d2d2; /* outer dropdown border */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff
    url('data:image/svg+xml;utf8,<svg fill="none" height="24" stroke="rgb(204,26,26)" stroke-width="3" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>')
    no-repeat right 2.5rem center/1.5rem auto;
  cursor: pointer;
  color: #111111;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Focus ring and border coloring to match theme */
.article-page .custom-select:focus,
.article-page .custom-select:focus-visible {
  border-color: #cc1a1a;
  box-shadow: 0 0 0 4px rgba(204, 26, 26, 0.12);
  outline: none;
}

/* Enhanced dropdown styling */
.article-page .custom-select-wrapper {
  position: relative;
  display: block;        /* align with homepage structure */
  width: 60%;            /* keep consistent width */
  margin: 0 auto;        /* center horizontally */
}

/* Hide the native dropdown */
.article-page .custom-select {
  position: relative;
  z-index: 10;
}

/* Custom dropdown styling */
.select-wrapper {
  position: relative;
  width: 100%;
}

.selected-option {
  padding: 18px 25px;
  background: rgb(0, 0, 0);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-weight: 400;
  border: none;
  min-height: 60px;
}

.selected-option::after {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E53935'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.select-wrapper.active .selected-option::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  border: 1px solid #e4d2d2;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  display: none;
  /* Hide scrollbar but keep scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  box-shadow: none;
}

.custom-dropdown::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.custom-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}



.dropdown-options {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 0;
  /* Hide scrollbar but keep scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.dropdown-options::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.dropdown-option {
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:hover {
  background: #fff3f3;
  color: #cc1a1a;
}

.dropdown-option.selected {
  background: #ffe3e3;
  color: #b22323;
  font-weight: 600;
}

.dropdown-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  font-weight: 500;
  color: #999;
}

.article-page .dropdown-option.disabled {
  color: #9e9e9e;
  background: #fafafa;
  font-style: italic;
  cursor: not-allowed;
}



/* Fallback styles for native select (still needed) */
.article-page .custom-select option {
  background: #ffffff;
  color: #111111;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid #e8caca;
  margin: 4px;
  line-height: 1.4;
}

.article-page .custom-select option:checked {
  background: #ffe3e3;
  color: #b22323;
}

.article-page .custom-select option:hover {
  background: #fff3f3;
  color: #e14c4c;
}

.article-page .custom-select option[disabled],
.article-page .custom-select option[disabled][selected] {
  color: #9e9e9e;
  background: #fafafa;
  font-style: italic;
}

/* Multi-select list consistency if used */
.article-page select[multiple].custom-select option:checked {
  background: #e14c4c;
  color: #ffffff;
}

.caret {
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: auto;
}

.filter-section-content {
  transition: all 0.3s ease;
}

/* Mobile filter sidebar */
.filter-sidebar.show {
  right: 0;
  transform: none;
}

.filter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

/* Applied filters container */
.applied-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 6px 0; /* breathing space around chips */
}

/* Applied filter chip */
.applied-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fff3f3; /* light theme-friendly */
  color: #e14c4c;
  padding: 8px 14px; /* comfortable touch target and content spacing */
  border-radius: 9999px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid #f3c8c8;
  box-shadow: 0 1px 2px rgba(225, 76, 76, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.applied-filter-tag:hover {
  background-color: #ffe5e5;
  box-shadow: 0 2px 6px rgba(225, 76, 76, 0.12);
}

.applied-filter-tag:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 76, 76, 0.18);
}

.applied-filter-tag button {
  background: #ffe5e5;
  border: 1px solid #f3c8c8;
  color: #e14c4c;
  margin-left: 2px;
  cursor: pointer;
  font-weight: 700;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  padding: 0;
}

.applied-filter-tag button:hover {
  background: #e14c4c;
  color: #fff;
  border-color: #e14c4c;
}

/* Responsive chip sizing */
@media (max-width: 768px) {
  .applied-filter-tag {
    font-size: 11px;
    padding: 6px 12px;
  }
  .applied-filter-tag button {
    width: 16px;
    height: 16px;
    line-height: 14px;
  }
}

@media (min-width: 1025px) {
  .applied-filter-tag {
    font-size: 12px;
    padding: 1em 0.5em;
    line-height: 1.4em;
  }
}

/* Range slider enhancements */
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 500;
}

/* Tag interactions */
.tag {
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: #e14c4c;
  color: white;
}

.tag.active {
  background-color: #e14c4c;
  color: white;
}

/* Disabled filter section - suppress interactions and hover */
.filter-section.disabled .tag {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.filter-section.disabled .tag:hover {
  background-color: inherit;
  color: inherit;
}
.filter-section.disabled .filter-section-header {
  opacity: 0.7;
  cursor: not-allowed;
}

.apply-filter-btn {
display: none;
}

/* Apply Filter button - Base (PC & Tablet) */
.apply-filter-btn-card {
  width: 100%;
  background: #e14c4c;
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
  box-shadow: 0 6px 16px rgba(225, 76, 76, 0.28);
  height: auto;                 /* grow with content */
  white-space: normal;          /* allow wrapping */
  line-height: 1.3;             /* comfortable multi-line */
  display: inline-flex;         /* center content nicely */
  align-items: center;
  justify-content: center;
  word-break: break-word;       /* avoid overflow on long words */
}

.apply-filter-btn-card:hover {
  background: #d64242;
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 76, 76, 0.35);
}

.apply-filter-btn-card:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(225, 76, 76, 0.3);
}

.apply-filter-btn-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 76, 76, 0.25), 0 8px 20px rgba(225, 76, 76, 0.35);
}

.apply-filter-btn-card:disabled,
.apply-filter-btn-card[disabled] {
  background: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  box-shadow: none;
}

/* Tablet view tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
  .apply-filter-btn-card {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(225, 76, 76, 0.22);
  }
}

/* Desktop view tweaks */
@media (min-width: 1025px) {

  .apply-filter-btn-card {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(225, 76, 76, 0.25);
  }
  .apply-filter-btn-card:hover {
    transform: translateY(-1px);
  }
}

/* Mobile filter panel base styles */
@media (max-width: 768px) {
/* For larger phones (landscape) */
.selected-option {
  padding: 1rem 3rem;
  margin-top: -0.6em;
}
.filter-toggle-btn {
background: #111;
color: #fff;
border: none;
border-radius: 20px;
padding: 0.5rem 1rem;
font-size: 0.9rem;
margin-top: 1em;
}

.filter-backdrop {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.45);
z-index: 1040;
}

/* Off-canvas sidebar for mobile */
#filterSidebar {
position: fixed;
top: 0;
right: -100%;
width: 86%;
max-width: 420px;
height: 100vh; /* fallback */
height: 100dvh; /* modern mobile */
min-height: 100vh;
max-height: none;
background: #fff;
box-shadow: -8px 0 24px rgba(0,0,0,0.18);
z-index: 1050;
overflow-y: auto !important;           /* enable vertical scrolling inside panel */
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
overscroll-behavior: contain;      /* prevent body scroll chaining */
touch-action: pan-y;               /* improve touch scroll */
transition: right 0.3s ease;
padding-top: 52px;  /* room for close button */
padding-bottom: 80px; /* breathing space at bottom for last items */
}

/* When shown, slide the drawer into view */
#filterSidebar.show {
right: 0;
}

/* Apply Filter button for mobile */
.apply-filter-btn {
position: fixed;
bottom: 0;
width: 86%;
max-width: 420px;
background: #e14c4c;
}

/* Apply Filter button inside filter card */
.apply-filter-btn-card {
width: 100%;
background: #e14c4c;
color: white;
border: none;
padding: 12px;
font-size: 1rem;
font-weight: 600;
text-align: center;
border-radius: 6px;
margin-top: 15px;
cursor: pointer;
transition: all 0.3s ease;
}

.apply-filter-btn-card:hover, .apply-filter-btn-card:focus {
background: #e14c4c;
color: white;
border: none;
padding: 15px;
font-size: 1rem;
font-weight: 600;
text-align: center;
z-index: 1051;
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
transition: all 0.3s ease;
right: 0;
}

.apply-filter-btn:hover, .apply-filter-btn:focus {
background: #e14c4c;
}

/* Only show apply-filter-btn when filter sidebar is shown */
#filterSidebar.show .apply-filter-btn {
display: block;
}

/* Make the filter sidebar scrollable with the button fixed at bottom */
#filterSidebar {
display: flex;
flex-direction: column;
max-height: 100vh;
overflow-y: auto;
padding-bottom: 0; /* Remove bottom padding */
}

/* Add padding to the bottom of the sidebar to make room for the fixed button */
#filterSidebar {
padding-bottom: 120px;
}

#filterSidebar.open {
right: 0;
}

/* Ensure inner content doesn't disable scrolling */
#filterSidebar * {
  overscroll-behavior: contain;
}

.filter-close-btn {
position: absolute;
top: 10px;
right: 12px;
width: 36px;
height: 36px;
border-radius: 50%;
background: #f2f2f2;
border: none;
font-size: 18px;
line-height: 36px;
text-align: center;
color: #222;
z-index: 1;
}
}

/* For tablets */
@media (max-width: 1024px) {
/* For tablets - match homepage baseline */
/* Navigation tabs */
.article-page .nav-tabs-custom {
  width: 60%;
  gap: 45px;
  padding-top: 10px;
  padding-bottom: 25px;
}

.article-page .nav-tabs-custom button {
font-size: 0.9rem;
padding: 0.5rem 0.75rem;
}

/* City selector */
.article-page .custom-select-wrapper {
  width: 70%;
  font-size: 1.25rem;
}

.article-page .custom-select {
padding: 1rem 1.75rem;
font-size: 1.1rem;
}

/* Property listing section */
.article-page .property-listing-section {
margin: 120px auto;
}

/* Filter sidebar */
.article-page .filter-sidebar {
width: 100%;
margin-bottom: 2rem;
padding: 25px;
}

/* Property results */
.article-page .aproperty h2 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
}

/* Property cards */
.article-page .aproperty-card {
flex-direction: column;
gap: 1rem;
margin-bottom: 1.5rem;
}

.article-page .property-image {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 12px;
}

.article-page .property-info {
padding: 1rem;
}

.article-page .property-info h3 {
font-size: 1.3rem;
margin-bottom: 0.75rem;
}

.article-page .property-info p {
font-size: 0.9rem;
margin-bottom: 1rem;
}

.article-page .property-details {
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}

.article-page .property-details span {
font-size: 0.9rem;
border-right: none;
padding-right: 0;
margin-bottom: 0.25rem;
}

.article-page .property-actions {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}

.article-page .btn-grp {
width: 100%;
justify-content: space-between;
}

.article-page .btn-share,
.article-page .btn-contact {
flex: 1;
padding: 0.75rem 1rem;
font-size: 0.9rem;
}
}

/* For larger phones (landscape) */
@media (max-width: 768px) {
/* For larger phones (landscape) */
/* Re-enable page overflow on mobile so drawer can scroll even if body overflow was locked on desktop */
html, body {
overflow: auto !important;
height: auto !important;
-webkit-overflow-scrolling: touch;
}

  /* Navigation tabs */
.article-page .nav-tabs-custom {
  width: 90%;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.article-page .nav-tabs-custom button {
font-size: 0.8rem;
padding: 0.4rem 0.6rem;
margin-bottom: 0.5rem;
}

/* City selector */
.article-page .custom-select-wrapper {
  width: 100%;
  font-size: 1rem;
  margin-top: 1rem;
}

.article-page .custom-select {
padding: 0.875rem 1.5rem;
font-size: 1rem;
}

/* Property listing section */
.article-page .property-listing-section {
margin: 100px auto;
}

.article-page .container {
padding: 0 1rem;
}

/* Filter sidebar */
.article-page .filter-sidebar {
width: 100%;
margin-bottom: 1.5rem;
padding: 20px;
border-radius: 12px;
}

.article-page .filter-header h2 {
font-size: 1.1rem;
}

.article-page .filter-section-header {
font-size: 0.9rem;
padding: 0.75rem 0;
}

.article-page .tag {
font-size: 0.8rem;
padding: 0.5rem 0.75rem;
}

.article-page .double-range {
width: 100%;
max-width: 100%;
}

.article-page .locality-list label {
font-size: 0.85rem;
}

/* Property results */
.article-page .aproperty h2 {
font-size: 1.5rem;
margin-bottom: 1.25rem;
text-align: center;
}

/* Property cards */
.article-page .aproperty-card {
flex-direction: column;
gap: 0.75rem;
margin-bottom: 1.25rem;
padding: 1rem;
border-radius: 12px;
}

.article-page .property-image {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
}

.article-page .property-info {
padding: 0.75rem 0;
}

.article-page .property-info h3 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
line-height: 1.3;
}

.article-page .property-info h3 span {
font-size: 0.9rem;
color: #666;
}

.article-page .property-info p {
font-size: 0.85rem;
line-height: 1.4;
margin-bottom: 0.75rem;
}

.article-page .property-details {
flex-direction: column;
gap: 0.375rem;
margin-bottom: 0.75rem;
}

.article-page .property-details span {
font-size: 0.8rem;
border-right: none;
padding-right: 0;
margin-bottom: 0.2rem;
}

.article-page .property-actions {
flex-direction: column;
gap: 0.75rem;
align-items: flex-start;
}

.article-page .property-time {
font-size: 0.75rem;
margin-bottom: 0.5rem;
}

.article-page .btn-grp {
width: 100%;
gap: 0.5rem;
}

.article-page .btn-share,
.article-page .btn-contact {
flex: 1;
padding: 0.6rem 0.8rem;
font-size: 0.8rem;
border-radius: 6px;
}

/* Neutralize dropdown-options styling on mobile */
.dropdown-options {
  max-height: none;
  padding: 0;
  overflow: visible;
}
}

/* For small devices (phones, portrait) */
@media (max-width: 480px) {
/* For small devices (phones, portrait) */
/* Ensure full-width containers with comfortable side padding on mobile */
.article-page {
overflow-x: hidden;
}

.article-page .container,
.article-page .container-fluid {
width: 100%;
max-width: 100%;
padding-left: 12px;
padding-right: 12px;
}

/* Tighten rows to avoid accidental horizontal overflow */
.article-page .row {
margin-left: 0;
margin-right: 0;
}
/* Navigation tabs */
.article-page .nav-tabs-custom {
  width: 90%;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.article-page .nav-tabs-custom button {
font-size: 0.7rem;
padding: 0.35rem 0.5rem;
margin-bottom: 0.25rem;
min-width: auto;
}

/* City selector */
.article-page .custom-select-wrapper {
  width: 100%;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.article-page .custom-select {
padding: 0.75rem 1.25rem;
font-size: 0.9rem;
}

/* Property listing section */
.article-page .property-listing-section {
margin: 80px auto;
}

.article-page .container {
padding: 0 0.75rem;
}

/* Filter sidebar */
.article-page .filter-sidebar {
width: 100%;
margin-bottom: 1.25rem;
padding: 15px;
border-radius: 8px;
}

.article-page .filter-header {
margin-bottom: 1rem;
}

.article-page .filter-header h2 {
font-size: 1rem;
}

.article-page .clear-btn {
font-size: 0.8rem;
}

.article-page .filter-section {
margin-top: 15px;
padding-top: 12px;
}

.article-page .filter-section-header {
font-size: 0.8rem;
padding: 0.6rem 0;
}

.article-page .tag {
font-size: 0.7rem;
padding: 0.4rem 0.6rem;
border-radius: 15px;
}

.article-page .tag .add-icon {
font-size: 0.8rem;
}

.article-page .double-range {
width: 100%;
margin-top: 12px;
}

.article-page .range-labels {
font-size: 0.7rem;
margin-top: 6px;
width: 100%;
overflow: hidden;
}

.article-page .range-labels span {
font-size: 0.65rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 45%;
}

/* apply-range-btn styles removed */

.article-page .locality-list {
margin-top: 6px;
}

.article-page .locality-list label {
font-size: 0.75rem;
margin-bottom: 6px;
}

.article-page .more-localities {
font-size: 0.7rem;
margin-top: 6px;
}

/* Property results */
.article-page .aproperty h2 {
font-size: 1.2rem;
margin-bottom: 1rem;
text-align: center;
line-height: 1.3;
}

/* Property cards */
.article-page .aproperty-card {
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
padding: 0.75rem;
position: relative;           /* allow absolute child placement */
padding-bottom: 2.25rem;      /* room for pinned time label */
border-radius: 8px;
}

.article-page .property-image {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 6px;
}

.article-page .property-info {
padding: 0.5rem 0;
}

.article-page .property-info h3 {
font-size: 1rem;
margin-bottom: 0.4rem;
line-height: 1.2;
}

.article-page .property-info h3 span {
font-size: 0.8rem;
color: #666;
}

.article-page .property-info p {
font-size: 0.75rem;
line-height: 1.3;
margin-bottom: 0.6rem;
}

.article-page .property-details {
flex-direction: column;
gap: 0.25rem;
padding: 0;
}

.article-page .property-details span {
font-size: 0.7rem;
border-right: none;
/* padding-right: 0;
margin-bottom: 0.15rem; */
}

.article-page .property-actions {
flex-direction: column;
gap: 0.5rem;
align-items: flex-start;
}

/* Pin time to bottom-right on mobile */
.article-page .property-time {
position: absolute;
right: 0.75rem;
bottom: 0.6rem;
font-size: 0.7rem;
margin: 0;
}

.article-page .btn-grp {
width: 100%;
gap: 0.4rem;
}

.article-page .btn-share,
.article-page .btn-contact {
flex: 1;
padding: 0.5rem 0.6rem;
font-size: 0.7rem;
border-radius: 4px;
}
}

/* Active Filter States - Enhanced for live environment */
.tag.active {
  background: #cc1a1a !important;
  color: #ffffff !important;
  border-color: #cc1a1a !important;
  position: relative !important;
  padding-right: 35px !important;
  z-index: 10;
}

.tag.active .add-icon {
  display: none !important;
}

.tag.active::after {
  content: "×" !important;
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-weight: bold !important;
  font-size: 16px !important;
  cursor: pointer !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  transition: background 0.2s ease !important;
  z-index: 15 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.tag.active:hover::after {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Force cross button visibility in all environments */
.article-page .tag.active::after {
  content: "×" !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 20 !important;
}

/* Property Pagination Navigation Styles */
.property-pagination {
  margin: 40px 0;
  text-align: center;
}

.property-pagination .pagination-info {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.property-pagination .pagination-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 0 20px;
}

.property-pagination .pagination-arrow {
  padding: 12px 20px;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 50px;
  text-align: center;
  cursor: pointer;
}

.property-pagination .pagination-arrow:hover {
  background: #cc1a1a;
  border-color: #cc1a1a;
  color: #fff;
  transform: scale(1.05);
}

.property-pagination .pagination-arrow.disabled {
  background: #f9f9f9;
  border: 2px solid #eee;
  color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Responsive pagination navigation */
@media (max-width: 1024px) {
  .property-pagination .pagination-arrows {
    gap: 15px;
    margin: 15px 0;
    padding: 0 15px;
  }
  
  .property-pagination .pagination-arrow {
    padding: 10px 16px;
    font-size: 16px;
    min-width: 45px;
  }
}

@media (max-width: 768px) {
  .property-pagination .pagination-arrows {
    gap: 12px;
    margin: 12px 0;
    padding: 0 12px;
    flex-wrap: wrap;
  }
  
  .property-pagination .pagination-arrow {
    padding: 10px 14px;
    font-size: 16px;
    min-width: 40px;
  }
}

@media (max-width: 480px) {
  .property-pagination .pagination-arrows {
    gap: 10px;
    margin: 10px 0;
    padding: 0 10px;
    flex-direction: row;
    justify-content: space-between;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .property-pagination .pagination-arrow {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 35px;
  }
}


