/* Font Loading Optimization - Prevent FOUT */
/* Fonts are already loaded via Google Fonts in index.html */

body {
  margin: 0;
  font-family: 'Amiri', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent layout shift from scrollbar */
  overflow-y: scroll;
}

/* Prevent button layout shifts globally */
button {
  min-height: 36px;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
}

/* Fix MUI button shifts */
.MuiButton-root {
  min-height: 36px;
  text-transform: none;
  font-family: inherit !important;
}

/* Fix MUI component shifts */

/* Global RTL placeholder styling */
input::placeholder,
textarea::placeholder {
  text-align: right;
  direction: rtl;
}

/* Material-UI specific placeholder styling */
.MuiInputBase-input::placeholder {
  text-align: right !important;
  direction: rtl !important;
}
.MuiIconButton-root {
  min-width: 48px;
  min-height: 48px;
}

.MuiChip-root {
  height: 32px;
  font-family: inherit !important;
}

/* Prevent tooltip shifts */
.MuiTooltip-popper {
  pointer-events: none;
}

/* Prevent image layout shifts */
img {
  max-width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* Skeleton screens for loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}


.footer {
background-color: #1a1a1a;
color: #ffffff;
padding: 3rem 0 1.5rem;
margin-top: auto;
width: 100%;
min-height: 300px; /* Reserve space */
contain: layout style; /* Prevent layout shifts */
flex-shrink: 0;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.footer-links {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 2rem;
min-height: 200px; /* Prevent collapse */
}
.footer-column {
flex: 1 1;
min-width: 250px;
min-height: 150px; /* Reserve space */
margin-bottom: 1.5rem;
text-align: center; /* Center align the column content */
}
.footer-column h4 {
color: #ffd700;
font-size: 1.25rem;
margin-bottom: 1rem;
font-weight: 600;
position: relative;
padding-bottom: 0.5rem;
text-align: center; /* Center the headers */
}
.footer-column h4::after {
content: '';
position: absolute;
bottom: 0;
left: 50%; /* Center the underline */
transform: translateX(-50%); /* Center the underline */
width: 50px;
height: 2px;
background-color: #ffd700;
transition: width 0.3s ease;
}
.footer-column:hover h4::after {
width: 75px;
}
.footer-column ul {
list-style: none;
padding: 0;
margin: 0;
text-align: center; /* Center the list */
}
.footer-column ul li {
margin-bottom: 0.75rem;
transition: transform 0.3s ease;
height: 30px; /* Fixed height to prevent shifts */
display: flex;
align-items: center;
justify-content: center;
position: relative; /* For hover effect */
will-change: transform; /* Optimize transform performance */
}
.footer-column ul li:hover {
transform: translateY(-2px); /* Change hover effect to vertical */
}
.footer-link-button {
background: none;
border: none;
color: #f5f5f5;
padding: 0.25rem 0;
font-size: 1rem;
font-family: 'Amiri', Arial, sans-serif !important; /* Force font */
cursor: pointer;
text-align: center; /* Center the button text */
width: 100%;
height: 100%; /* Fill parent height */
transition: color 0.3s ease; /* Only transition color */
font-display: swap; /* Prevent font loading shifts */
}
.footer-link-button:hover {
color: #ffd700;
}
.footer-bottom {
text-align: center;
padding: 20px 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
min-height: 60px; /* Prevent collapse */
}
.footer-bottom p {
margin: 0;
color: #cccccc;
font-size: 0.9rem;
display: flex;
justify-content: center;
align-items: center;
}
.mobile-footer {
display: none;
width: 100%;
background: #1a1a1a;
padding: 10px 0;
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
height: 70px;
}
.mobile-footer-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1 1;
background: none;
border: none;
color: #ffffff;
padding: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
.mobile-footer-item svg {
font-size: 24px;
margin-bottom: 4px;
}
.mobile-footer-item span {
font-size: 12px;
}
.mobile-footer-item:active {
transform: scale(0.95);
}
/* RTL Specific Styles - Maintain center alignment */
[dir="rtl"] .footer-links {
text-align: center; /* Center for RTL */
}
[dir="rtl"] .footer-column {
text-align: center; /* Maintain center in RTL */
}
[dir="rtl"] .footer-column ul li {
padding-right: 0;
}
[dir="rtl"] .footer-link-button {
text-align: center; /* Center in RTL */
}
[dir="ltr"] .footer-link-button {
text-align: center; /* Center in LTR */
}
/* Responsive Design */
@media (max-width: 992px) {
.footer-links {
gap: 1.5rem;
 }
.footer-column {
min-width: 200px;
 }
}
@media (max-width: 768px) {
.footer {
padding: 2rem 0 1rem;
 }
.footer-content {
padding: 0 1.5rem;
 }
.footer-links {
flex-direction: column;
align-items: center;
text-align: center;
gap: 1rem;
 }
 [dir="rtl"] .footer-links,
 [dir="ltr"] .footer-links {
text-align: center;
 }
.footer-column {
margin-bottom: 1.5rem;
width: 100%;
max-width: 300px;
 }
.footer-column h4::after {
left: 50%;
transform: translateX(-50%);
 }
.footer-column ul li:hover {
transform: none;
 }
.footer-link-button {
text-align: center;
 }
.mobile-footer {
display: flex;
justify-content: space-around;
 }
.footer {
display: none;
 }
.footer.expanded {
display: block;
 }
}
/* Animations - Removed to prevent layout shift */
.footer-column {
/* Animation removed to prevent CLS */
opacity: 1;
}
/* Accessibility */
.footer-column ul li a:focus {
outline: 2px solid #ffd700;
outline-offset: 3px;
}
/* Print Styles */
@media print {
.footer {
background-color: white;
color: black;
 }
.footer-column h4 {
color: black;
 }
.footer-link-button {
color: black;
 }
}


/* Global Font Family */
* {
  font-family: 'Amiri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* General Styles */
body {
  font-size: 18px;
  padding: 0;
  background-color: #f4f4f9;
}


/* Global header styles removed to prevent conflicts with Tailwind-styled Header component */

/* Navigation Styles */
nav {
  background-color: #444;
  padding: 0.5rem;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Form Styles */

.form-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  
}

form .form-group,
.form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1rem;
}

form label,
.form-group label {
  flex: 0 0 220px; /* Adjust this value to control the label width */
  margin-bottom: 0;
  font-weight: 300;
  order: 1;
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form select,
.form-group input,
.form-group select,
.form-group textarea,
.form-group .phone-input,
.form-group .date-display,
.form-group .multi-select,
.form-group .multi-select-container {
  flex: 1 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  order: 2;
}
/* Update other text elements */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
 
  font-weight: 300;
}

form button[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  min-height: 44px;
  min-width: 100px;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Property List Styles */
.property-list {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.property-item {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.property-item:last-child {
  border-bottom: none;
}
h3 {
  
  font-weight: 500; /* Medium weight for headers */
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.property-item h3 {
  margin: 0 0 0.5rem;
  
}

.property-item p {
  margin: 0.25rem 0;
}

.property-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  margin: 0 5px;
  padding: 10px 15px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.pagination button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination button:hover {
  background-color: #e9ecef;
}

/* Read-only Input Styles */
.read-only-input {
  background-color: #f0f0f0; /* Light grey background */
  color: #666; /* Grey text color */
  border: 1px solid #ccc; /* Light grey border */
  cursor: not-allowed; /* Change cursor to indicate it's not editable */
  pointer-events: none; /* Prevent any interaction */
}

/* Property Details Styles */
.property-details {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Property Title Styles */
.property-title {
  
  font-weight: 300; /* Light */
  font-size: 2rem;
  text-align: center;
  color: #000000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
 
}



.property-info {
  margin-top: 1rem;
}

.property-info .section {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.property-info .section.section-1 {
  background-color: #f5eada;
}

.property-info .section.section-2 {
  background-color: #e0f7fa;
}

.property-info .section.section-3 {
  background-color: #eff9f6;
}

.property-info .section.section-4 {
  background-color: #e6f7ff; /* Light blue background */
}

.property-info .section.section-5 {
  background-color: #e6e8f5; /* Light blue background */
}

.property-info .section.section-6 {
  background-color: #e6f7ff; /* Light blue background */
}

.property-info .section .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.label {
  display: flex;
  align-items: center;
  min-width: 180px; /* Adjust this value as needed */
  white-space: nowrap;
}

.label .material-icons {
  margin-right: 10px;  /* For LTR */
  margin-left: 10px;   /* For RTL */
}

.property-info .section .label {
  flex: 0 0 220px; /* Adjust this value to control the label width */
  font-weight: bold;
}

.property-info .section .value {
  flex: 1 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 4px;
  overflow-wrap: break-word; /* Ensure text wraps within the container */
  word-break: break-word; /* Ensure text wraps within the container */
  min-height: 1.5rem; /* Adjust height */
  max-width: 450px; /* Adjust width */
}

/* Button Styles */
.buttons {
  display: flex;
  justify-content: center; /* Center the buttons */
  margin-top: 20px;
}

.edit-button,
.cancel-button,
.delete-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  
  font-weight: 300;
  transition: background-color 0.3s ease;
  margin: 0 10px; /* Add some space between the buttons */
}
[dir="rtl"] {
 
  font-weight: 300;
}
.edit-button {
  background-color: #28a745; /* Green */
  color: white;
}

.edit-button:hover {
  background-color: #218838; /* Darker green */
}

.cancel-button {
  background-color: #fb9405;
  color: white;
}

.cancel-button:hover {
  background-color: #e0a800; /* Darker yellow */
}

.delete-button {
  background-color: #dc3545; /* Red */
  color: white;
}

.delete-button:hover {
  background-color: #c82333; /* Darker red */
}

/* Phone input styles - now using standard input field */

/* Default error message styles */
.error-message {
  color: red;
  font-size: 0.875rem;
  flex: 1 1 100%;
  margin-top: 0.25rem;
  margin-left: 0;
  text-align: left;
  order: 4;
}

/* Specific error message styles for AddProperty and EditProperty forms */
.property-details .form-group .error-message {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  color: red !important;
  font-size: 0.875rem !important;
  text-align: left !important;
  flex: 1 1 100% !important;
  margin-top: 0.25rem !important;
  margin-left: 0 !important;
  order: 4 !important;
  display: block !important;
}

form textarea {
  flex: 1 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical; /* Allow vertical resizing */
  min-height: calc(1.5em * 3); /* 3 rows */
  max-width: 100%; /* Make sure it doesn't exceed the container width */
  order: 2;
}

/* Grid styling for checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
}

.form-group label {
  display: flex;
  align-items: center;
}

.form-group input[type="checkbox"] {
  margin-right: 10px;
}


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

.section-buttons {
  display: flex;
  gap: 10px;
}

.select-button,
.unselect-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px; /* Adjust this value to add spacing between the button and the checkboxes */
}

.select-button {
  background-color: #3c82cd;
  color: white;
}

.select-button:hover {
  background-color: #0c68cb;
}

.unselect-button {
  background-color: #918889;
  color: white;
}

.unselect-button:hover {
  background-color: #c54451;
}

.map-container {
  width: 100%;
  height: 400px; /* Adjust the height as needed */
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.section-5 {
  margin-top: 2rem;
}

/* General styling for toggle arrows */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background-color: #ddd;
  transition: background-color 0.3s;
  font-size: 0.8rem;
  transform: translateY(-16px);
}

.toggle-arrow:hover {
  background-color: #ccc;
}

.toggle-arrow .triangle {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  vertical-align: middle;
}

.toggle-arrow .triangle.down {
  border-top: 6px solid #000;
}

.toggle-arrow .triangle.up {
  border-bottom: 6px solid #000;
}

.button-container {
  display: flex;
  justify-content: space-between;
}

.open-google-maps-button {
  margin-top: 10px;  /* This adds space on top */
}

.open-google-maps-button:hover {
  background-color: #3367D6;
}

/* Responsive Media Grid for PropertyDetails */
.image-container,
.video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px; /* Add space between individual images */
  
}

.image-wrapper,
.video-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 10px; /* Add space around each image */

}

.property-image,
.property-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.image-wrapper .image-number,
.video-wrapper .video-number {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* Responsive Media Grid for EditProperty */
.media-container .existing-images,
.media-container .existing-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px; /* Add space between individual images and videos */
}

.media-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  
}

.property-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.media-wrapper .media-number,
.media-wrapper .image-number,
.media-wrapper .video-number {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.media-wrapper .delete-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.media-divider {
  width: 100%;
  height: 2px;
  background-color: #ccc;
  margin: 20px 0; /* Space between image and video sections */
}

.existing-images {
  margin-bottom: 20px; /* Add space between images and videos */
}
.required-star {
  color: red;
  margin-left: 4px;
}
.highlight {
  background-color: yellow;
}
/* Container for all media */
.edit-property-media-grid {
  width: 100%;
  margin: 20px 0;
}

/* Shared styles for both image and video grids */
.edit-property-media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

/* Media item wrapper */
.edit-property-media-item {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Media content styling */
.edit-property-media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Number indicator */
.edit-property-media-number {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}

/* Delete button */
.edit-property-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s;
}

.edit-property-delete-btn:hover {
  background: rgba(220, 53, 69, 1);
}

/* Section divider */
.edit-property-media-divider {
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  margin: 24px 0;
}

/* Section headers */
.edit-property-media-header {
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
  margin: 16px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .edit-property-media-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .edit-property-media-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Add these to your existing CSS file */

.file-info {
  display: block;
  color: #666;
  margin-top: 5px;
  font-size: 0.85em;
  font-style: italic;
  text-align: left;
  flex: 1 1 100%;
  order: 3;
}


/* Style for the file input */
input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

input[type="file"]:hover {
  border-color: #999;
}

input[type="file"]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

/* Error message styling for file uploads */
.error-message {
  color: #dc3545;
  font-size: 0.85em;
  margin-top: 5px;
  display: block;
}

/* Specific styling for the owner files section */
.form-group i.material-icons {
  vertical-align: middle;
  margin-right: 5px;
  color: #666;
}

/* Hover effect for the file input container */
.form-group:has(input[type="file"]):hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* Disabled state styling */
input[type="file"]:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* File input focus within form group */
.form-group:has(input[type="file"]:focus) {
  outline: none;
  background-color: rgba(0, 102, 204, 0.05);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* Small screen adjustments */
@media (max-width: 768px) {
  .file-info {
    font-size: 0.75em;
  }
  
  input[type="file"] {
    padding: 6px;
  }
}
.owner-files-section {
  margin-bottom: 20px;
}

.existing-owner-files {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to new lines */
  gap: 15px;
  margin-bottom: 20px;
  overflow-x: auto; /* Enable horizontal scrolling if needed */
  padding: 10px 0;
  width: 100%;
}

.owner-file-item {
  flex: 0 0 120px; /* Fixed width, don't grow or shrink */
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.owner-file-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-file-thumbnail .pdf-icon {
  font-size: 48px;
  color: #dc3545;
}

.owner-file-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px;
  font-size: 10px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-file-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

.owner-file-delete:hover {
  background: #dc3545;
}
/* Base responsive styles */
@media (max-width: 1024px) {
  .form-container {
    max-width: 90%;
    padding: 1.5rem;
  }

  .property-list,
  .property-details {
    max-width: 90%;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Remove margin and set full width for form container in mobile */
  .property-details {
    margin: 0;
    max-width: 100%;
  }

  /* Reduce section padding in mobile */
  .property-info .section {
    padding: 0.5rem;
  }

  /* Form adjustments - Mobile responsive design for labels and inputs on same row */
  .property-details .form-group,
  .form-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    margin-bottom: 1rem !important;
  }

  /* Style the labels */
  .property-details .form-group .label,
  .property-details .form-group label,
  form .form-group label,
  form label {
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 120px !important;
    max-width: 150px !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: auto !important;
            hyphens: auto !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    order: 1 !important;
  }

  /* Style inputs to take remaining space in same row */
  .property-details .form-group input,
  .property-details .form-group select,
  .property-details .form-group textarea,
  .property-details .form-group .phone-input,
  .property-details .form-group .date-display,
  .property-details .form-group .multi-select,
  .property-details .form-group .multi-select-container,
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-group .phone-input,
  .form-group .date-display,
  .form-group .multi-select,
  .form-group .multi-select-container {
    flex: 1 1 !important;
    min-width: 0 !important;
    order: 2 !important;
  }

  /* Error messages appear below on new line - Mobile specific for AddProperty/EditProperty */
  .property-details .form-group .error-message {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    color: red !important;
    font-size: 0.875rem !important;
    text-align: left !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 0.25rem !important;
    margin-left: 0 !important;
    order: 3 !important;
    display: block !important;
  }

  form input[type="text"],
  form input[type="number"],
  form input[type="email"],
  form input[type="password"],
  form select,
  form textarea {
    flex: 1 1;
    min-width: 0;
  }

  .property-info .section .label {
    flex: none;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .property-info .section .info-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-info .section .value {
    width: 100%;
    max-width: 100%;
  }


  /* Button adjustments */
  .buttons {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }

  .edit-button,
  .cancel-button,
  .delete-button {
    flex: 1 1;
    max-width: 150px;
    margin: 0;
  }

  /* Media grid adjustments */
  .edit-property-media-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Map container adjustment */
  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  /* Container adjustments */
  .form-container,
  .property-list,
  .property-details {
    padding: 1rem;
  }

  /* Smaller mobile adjustments for form layout */
  .property-details .form-group,
  .form-group {
    gap: 0.15rem !important;
  }

  .property-details .form-group .label,
  .property-details .form-group label,
  form .form-group label,
  form label {
    flex: 0 0 100px !important;
    width: 100px !important;
    min-width: 80px !important;
    max-width: 100px !important;
    font-size: 0.85rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    -webkit-hyphens: auto !important;
            hyphens: auto !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    order: 1 !important;
  }

  /* Inputs take remaining space */
  .property-details .form-group input,
  .property-details .form-group select,
  .property-details .form-group textarea,
  .property-details .form-group .phone-input,
  .property-details .form-group .date-display,
  .property-details .form-group .multi-select,
  .property-details .form-group .multi-select-container,
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-group .phone-input,
  .form-group .date-display,
  .form-group .multi-select,
  .form-group .multi-select-container {
    order: 2 !important;
  }

  /* Error messages below - Mobile 480px specific for AddProperty/EditProperty */
  .property-details .form-group .error-message {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    color: red !important;
    font-size: 0.875rem !important;
    text-align: left !important;
    order: 3 !important;
    display: block !important;
  }

  form input[type="text"],
  form input[type="number"],
  form input[type="email"],
  form input[type="password"],
  form select,
  form textarea {
    font-size: 0.9rem;
    padding: 0.4rem;
  }


  /* Media grid adjustments */
  .edit-property-media-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Owner files adjustments */
  .existing-owner-files {
    gap: 10px;
  }

  .owner-file-item {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
  }

  /* Title adjustments */
  .property-title {
    font-size: 1.5rem;
  }

  /* Section adjustments */
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .section-buttons {
    width: 100%;
    justify-content: space-between;
  }

  /* Phone input now uses standard form input styling */
}

/* Print media query */
@media print {
  .form-container,
  .property-list,
  .property-details {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .buttons,
  .map-container,
  nav,
  .no-print {
    display: none !important;
  }
}
.char-counter {
  text-align: left;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}
.date-display {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #666;
}
.file-preview-container {
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  background-color: #f9f9f9;
}

.file-preview-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #eee;
}

.preview-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumbnail, .file-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  font-size: 10px;
  padding: 5px;
  text-align: center;
  word-break: break-word;
  overflow: hidden;
}

.remove-file-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 0 3px 0 3px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
}

.remove-file-btn:hover {
  background-color: rgba(255, 0, 0, 0.9);
}

/* Section 4 - Additional Information - Specific Styles */
.section4-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
  gap: 15px;
  margin: 20px 0;
  width: 100%;
}

.section4-checkbox-item {
  margin: 0;
  padding: 0;
}

.section4-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.section4-checkbox-input {
  margin: 0 0 0 10px; /* For RTL: margin-left */
}

.section4-checkbox-text {
  flex: 1 1;
}

/* Responsive adjustments for Section 4 */
@media (max-width: 768px) {
  .section4-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section4-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: hsl(6, 78%, 57%);
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);

  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);

  --toastify-container-width: fit-content;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-padding: 14px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;

  /* Used only for colored theme */
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;

  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  /* used to control the opacity of the progress trail */
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: 9999;
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, 9999);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  width: -webkit-fit-content;
  width: fit-content;
  width: var(--toastify-container-width);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.Toastify__toast-container--top-left {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--top-center {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--top-right {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}
.Toastify__toast-container--bottom-left {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--bottom-center {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--bottom-right {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}

.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  width: 320px;
  width: var(--toastify-toast-width);
  min-height: 64px;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 14px;
  padding: var(--toastify-toast-padding);
  border-radius: 6px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  box-shadow: var(--toastify-toast-shadow);
  max-height: 800px;
  max-height: var(--toastify-toast-max-height);
  font-family: sans-serif;
  font-family: var(--toastify-font-family);
  /* webkit only issue #791 */
  z-index: 0;
  /* inner swag */
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  word-break: break-word;
}

@media only screen and (max-width: 480px) {
  .Toastify__toast-container {
    width: 100vw;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left,
  .Toastify__toast-container--top-center,
  .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left,
  .Toastify__toast-container--bottom-center,
  .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: auto;
    left: initial;
  }
  .Toastify__toast {
    --toastify-toast-width: 100%;
    margin-bottom: 0;
    border-radius: 0;
  }
}

.Toastify__toast-container[data-stacked='true'] {
  width: 320px;
  width: var(--toastify-toast-width);
}

.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}

.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}

.Toastify__toast--stacked[data-collapsed='false'] {
  overflow: visible;
}

.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
  opacity: 0;
}

.Toastify__toast--stacked:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}

.Toastify__toast--stacked[data-pos='top'] {
  top: 0;
}

.Toastify__toast--stacked[data-pos='bot'] {
  bottom: 0;
}

.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
  transform-origin: top;
}

.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
  transform-origin: bottom;
}

.Toastify__toast--stacked:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}

.Toastify__toast--rtl {
  direction: rtl;
}

.Toastify__toast--close-on-click {
  cursor: pointer;
}

.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 22px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

.Toastify__toast-theme--dark {
  background: #121212;
  background: var(--toastify-color-dark);
  color: #fff;
  color: var(--toastify-text-color-dark);
}

.Toastify__toast-theme--light {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--default {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--info {
  color: #fff;
  color: var(--toastify-text-color-info);
  background: #3498db;
  background: var(--toastify-color-info);
}

.Toastify__toast-theme--colored.Toastify__toast--success {
  color: #fff;
  color: var(--toastify-text-color-success);
  background: #07bc0c;
  background: var(--toastify-color-success);
}

.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: #fff;
  color: var(--toastify-text-color-warning);
  background: #f1c40f;
  background: var(--toastify-color-warning);
}

.Toastify__toast-theme--colored.Toastify__toast--error {
  color: #fff;
  color: var(--toastify-text-color-error);
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  background: var(--toastify-color-progress-light);
}

.Toastify__progress-bar-theme--dark {
  background: #bb86fc;
  background: var(--toastify-color-progress-dark);
}

.Toastify__progress-bar--info {
  background: #3498db;
  background: var(--toastify-color-progress-info);
}

.Toastify__progress-bar--success {
  background: #07bc0c;
  background: var(--toastify-color-progress-success);
}

.Toastify__progress-bar--warning {
  background: #f1c40f;
  background: var(--toastify-color-progress-warning);
}

.Toastify__progress-bar--error {
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-progress-error);
}

.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.7);
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  z-index: 1;
}

.Toastify__toast--rtl .Toastify__close-button {
  left: 6px;
  right: auto;
  right: initial;
}

.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}

.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}

.Toastify__close-button:hover,
.Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  transform-origin: left;
}

.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}

.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}

.Toastify__progress-bar--rtl {
  right: 0;
  left: auto;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: 0;
  border-bottom-left-radius: initial;
}

.Toastify__progress-bar--wrp {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
  border-bottom-right-radius: 6px;
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}

.Toastify__progress-bar--wrp[data-hidden='true'] {
  opacity: 0;
}

.Toastify__progress-bar--bg {
  opacity: 0.2;
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: #e0e0e0;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: #616161;
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}

@keyframes Toastify__bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}

.Toastify__bounce-enter--top-left,
.Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}

.Toastify__bounce-enter--top-right,
.Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}

.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}

.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left,
.Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}

.Toastify__bounce-exit--top-right,
.Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}

.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}

.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}

.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}

@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}

.Toastify__slide-enter--top-left,
.Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}

.Toastify__slide-enter--top-right,
.Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}

.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}

.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left,
.Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-right,
.Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Search Function Container Wrapper */
.search-function-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 100 !important;
  background: transparent !important;
}

/* Styles for the search form and selected criteria container */
.search-function-container .search-function-form,
.property-list-search-section .search-function-form,
.search-function-form {
  display: flex !important;
  flex-direction: row !important; /* Aligns items in a row */
  align-items: center !important; /* Vertically centers items */
  width: 100% !important; /* Full width */
  max-width: 100% !important; /* Ensure the form takes up the full width */
  position: relative !important; /* Required for absolute positioned error message */
  z-index: 100 !important;
  margin-bottom: 25px !important; /* Space for error message below */

  @media (max-width: 768px) {
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 30px !important; /* More space on mobile */
  }
}

/* Mobile: Create a row for criteria and button */
@media (max-width: 768px) {
  .search-function-container .search-function-form,
  .property-list-search-section .search-function-form,
  .search-function-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  
  .search-function-container .search-function-input,
  .property-list-search-section .search-function-input {
    order: 1 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
  }
  
  /* Force criteria and button container to be on same row */
  .search-function-container .multi-select-container,
  .property-list-search-section .multi-select-container,
  .search-function-form .multi-select-container {
    order: 2 !important;
    flex: 1 1 !important;
    min-width: 0 !important;
    width: auto !important;
    margin-right: 10px !important;
    margin-bottom: 0 !important;
    display: block !important;
  }
  
  .search-function-container .search-function-button,
  .property-list-search-section .search-function-button,
  .search-function-form .search-function-button {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
  }
}

/* Wider search input */
.search-function-container .search-function-input,
.property-list-search-section .search-function-input,
.search-function-input {
  flex: 3 1 !important; /* Increase width of input field */
  max-width: 70ch !important; /* Ensures input can accommodate a bigger width */
  padding: 8px !important;
  font-size: 1em !important;
  margin-left: 10px !important; /* Space between input and next element - changed from margin-right */
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  direction: rtl !important; /* RTL direction for Arabic text */
  text-align: right !important; /* Align text to the right */
  order: 1 !important; /* Put search input first in RTL layout */
  
  @media (max-width: 768px) {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    order: 1 !important;
  }
}

/* Reduce width of multi-select */
.property-list-search-section .multi-select-container,
.search-function-form .multi-select-container,
.multi-select-container {
  flex: 1 1 !important; /* Reduce the width of multi-select */
  margin-right: 10px !important; /* Space between multi-select and next element */
  position: relative !important;
  z-index: 1000 !important;
  order: 2 !important; /* Put multi-select second in RTL layout */

  @media (max-width: 768px) {
    flex: 1 1 auto !important;
    width: auto !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    order: 2 !important;
    min-width: 0 !important;
  }
}

.property-list-search-section .search-function-button,
.search-function-form .search-function-button,
.search-function-button {
  padding: 8px 16px !important;
  font-size: 1em !important;
  background-color: #007bff !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  margin-right: 10px !important; /* Space between button and previous element - changed from margin-left */
  font-family: inherit !important;
  min-height: auto !important;
  order: 3 !important; /* Put button last in RTL layout */
  
  @media (max-width: 768px) {
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    order: 3 !important;
  }
}

.property-list-search-section .search-function-button:hover,
.search-function-form .search-function-button:hover,
.search-function-button:hover {
  background-color: #0056b3 !important;
}

.property-list-search-section .search-function-button:focus,
.search-function-form .search-function-button:focus,
.search-function-button:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5) !important;
}

.property-list-search-section .error-message,
.search-function-form .error-message,
.search-function .error-message {
  color: red !important;
  margin: 5px 0 0 0 !important; /* Top margin only, positioned below */
  font-size: 0.9em !important;
  display: block !important;
  width: 100% !important;
  text-align: right !important; /* RTL alignment for Arabic text */
  direction: rtl !important;
  order: 4 !important; /* Ensure it appears below the form elements */
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  z-index: 1001 !important;
}

/* Center save and clear buttons with space between them */
.property-list-search-section .selected-criteria-container,
.search-function .selected-criteria-container,
.selected-criteria-container {
  margin-top: 20px !important;
  padding: 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  background-color: #f9f9f9 !important;
  width: 100% !important;
  max-width: 1200px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  z-index: 5 !important;

  @media (max-width: 768px) {
    padding: 10px !important;
    margin-top: 15px !important;
  }
}

.selected-criteria-container h4 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}

.selected-criteria-container p {
  margin-bottom: 15px;
  color: #666;
}

.selected-criteria-container button {
  padding: 8px 12px;
  font-size: 0.9em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.selected-criteria-container .button-container {
  display: flex;
  justify-content: center; /* Center the buttons */
  gap: 20px; /* Add space between the buttons */
  margin-top: 10px;
  
  button {
    @media (max-width: 768px) {
      width: 100%;
      padding: 12px;
      margin: 5px 0;
    }
  }
}

.selected-criteria-container .save-button {
  background-color: #007bff;
  color: #fff;
}

.selected-criteria-container .save-button.saved {
  background-color: #28a745;
  color: #fff;
}

.selected-criteria-container .clear-button {
  background-color: #dc3545;
  color: #fff;
}

.selected-criteria-container .clear-button:hover {
  background-color: #c82333;
}

.selected-criteria-container button:hover {
  background-color: #0056b3;
  color: #fff;
}

.selected-criteria-container button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}
.property-search-button {
  background-color: #70767d;
  color: white;
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.property-search-button:hover {
  background-color: #d1b519;
}

.property-search-button:focus {
  outline: none;
}

/* src/components/MultiSelect.css */

.multi-select-container {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 0;
  margin: 0;
}
  
  .multi-select {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
  }
  
  .multi-select-options {
    display: none;
    position: absolute;
    z-index: 1;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  
  .multi-select-container:hover .multi-select-options,
  .multi-select-container .multi-select-options {
    display: block;
  }
  
  .multi-select-option {
    padding: 0.5rem;
    cursor: pointer;
  }
  
  .multi-select-option:hover {
    background-color: #f1f1f1;
  }
  
  .multi-select-option.selected {
    background-color: #007bff;
    color: white;
  }
  
  .multi-select-option .checkmark {
    margin-right: 0.5rem;
  }
  
/* General Styles */
body {
  
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
}

/* Accessibility - Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Property List Container */
.property-list-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  direction: rtl;
  min-height: calc(100vh - 480px); 
  

}
@media (max-width: 768px) {
  .property-list-container {
    min-height: calc(100vh - 210px); /* Adjust for mobile */
  }
}
.property-list-container2 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  direction: rtl;
  min-height: calc(100vh - 480px); 

}
@media (max-width: 768px) {
  .property-list-container2 {
    min-height: calc(100vh - 210px); /* Adjust for mobile */
  }
}
.property-list-container3 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #fffbff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  direction: rtl;
  min-height: calc(100vh - 480px); 

}
@media (max-width: 768px) {
  .property-list-container3 {
    min-height: calc(100vh - 210px); /* Adjust for mobile */
  }
}
.property-list-container4 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f5f2ec;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  direction: rtl;
  min-height: calc(100vh - 480px); 

}
@media (max-width: 768px) {
  .property-list-container4 {
    min-height: calc(100vh - 210px); /* Adjust for mobile */
  }
}
/* Search Section */
.property-list-search-section {
  margin-bottom: 1rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  direction: rtl !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Content Layout */
.content-columns {
  display: flex;
  position: relative;
  gap: 10px;
}

/* Property List Column */
.property-list-column {
  flex: 3 1;
  min-width: 0;

}

/* Map Column */
.map-column {
  flex: 2 1;
  position: relative;

}

.sticky-map {
  position: -webkit-sticky;
  position: sticky;
  top: 2rem;
  height: calc(100vh - 30rem);
  overflow: hidden;
}

/* Section Headers */
.property-list-container h2 {
  text-align: center;
  font-size: 1.5rem;
  color:#333;
  text-decoration: underline;
  font-weight: 700;
}

.property-list-container2 h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #333;
  text-decoration: underline;
  font-weight: 700;
}

/* Property List Items */
.property-list-items {
   padding: 0;
  list-style: none;
}

.property-list-item {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start; /* Align items to top */
  gap: 1rem;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
 padding: 0.75rem; /* Reduced padding */
  margin-bottom: 1rem; /* Reduced margin */
  color: #000;
}

.property-list-item2 {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start; /* Align items to top */
  gap: 1rem;
  background-color: #ebf4f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem; /* Reduced padding */
  margin-bottom: 1rem; /* Reduced margin */
  color: #000;
}

/* Property Image Container */
.property-list-image-container {
 flex: 0 0 300px;
  min-width: 300px;
}

.property-list-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Square aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
}

.property-list-image {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 8px;
  aspect-ratio: unset !important;
}

/* Property Info */
.property-list-info {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
  overflow-wrap: break-word; /* Allow word breaking */
  word-wrap: break-word;
}

.property-list-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem; /* Reduced margin */
  flex-direction: row;

}

.property-list-title {
  font-size: 1.5rem;
  color: #0056b3; /* Darker blue for better contrast (WCAG AA compliant) */
  text-decoration: none; /* Remove underline */
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
  
  /* Add ellipsis truncation */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1;
  min-width: 0;
}
.property-list-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0; /* Start from right for RTL */
  background-color: #007bff;
  transition: width 0.3s ease;
}


.property-list-title:hover::after {
  width: 100%;
}

.property-list-title:hover {
  color: #003d82; /* Even darker on hover */
}
.property-list-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0056b3; /* Darker blue for better contrast (WCAG AA compliant) */
  flex-shrink: 0;
  white-space: nowrap;
}

.property-list-description,
.property-list-location,
.property-list-price,
.property-list-insertion-date {
  margin: 0.5rem 0;
  line-height: 1.5;
  text-align: right;
  -webkit-hyphens: auto;
          hyphens: auto;
}

/* Action Buttons */
.property-list-actions {
  display: flex;
  gap: 1px;
  align-items: center;
  margin-right: auto;
  
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease-in-out;
}

.icon-button:hover {
  transform: scale(1.2);
}

/* Icons */
.favorite-icon,
.hide-icon {
  font-size: 24px;
  transition: color 0.2s ease-in-out;
}

.favorite-icon {
  color: #add8e6;
}

.favorite-icon.active {
  color: #2f80fa;
}

.hide-icon {
  color: #808080;
}

.hide-icon.active {
  color: #404040;
}

.hide-icon.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-icon {
  color: #1976d2;
  font-size: 24px;
  transition: color 0.2s ease-in-out;
}

.share-button:hover .share-icon {
  color: #1565c0;
}

/* Hidden Property */
.hidden-property-placeholder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.unhide-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #1976d2;
}

/* Property Status */
.property-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  padding: 10px 20px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  opacity: 0.7;
  border: 3px solid white;
  border-radius: 5px;
  pointer-events: none;
  z-index: 2;
}

.new-property-tag {
  position: absolute;
  top: 10px;
  left: 10px; 
  background-color: #ff4757;
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 3px;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: rotate(-10deg); 
}

/* Date Display */
.time-display {
  background-color: #eef0f0;
  border-radius: 12px;
  padding: 2px 8px;
  color: #348de5;
  display: inline-block;
  margin-right: 5px;
  margin-left: 0;
}

.time-period {
  color: #605e5e;
}

/* Price Display */
.price-value {
  background-color: #ecf9ec;
  padding: 4px 8px;
  border-radius: 12px;
  color: #008000;
  display: inline-block;
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 0px;
  display: inline-block;
  margin: 0 0 0 4px;
  font-size: inherit;
  font-weight: normal;
}

.kind-badge {
  background-color: #ee714b;
  color: #ffffff;
}

.type-badge-sale {
  background-color: #13ab52;
  color: #ffffff;
}

.type-badge-rent {
  background-color: #6a9eec;
  color: #ffffff;
}

.type-badge-other {
  background-color: #aaa7a7;
  color: #ffffff;
}

/* Footer Section */
.footer-section {
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  min-height: 50px; /* Reserve space to prevent shift */
}

/* PDF Link */
.pdf-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: #315dae;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-direction: row-reverse;
}

.pdf-link:hover:not(:disabled) {
  background-color: #264785;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pdf-link:disabled {
  background-color: #94a3c3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* Summary Section */
.property-list-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-left {
  font-size: 0.8rem;
  color: #333;
  text-align: right;
}

.summary-right {
  text-align: left;
}

/* Pagination */
.property-list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
  padding: 0.5rem;
  flex-wrap: nowrap;
}
.pagination-arrow {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.property-list-pagination-button {
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.property-list-pagination-button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}


.property-list-pagination-button[disabled] {
  cursor: default;
}

/* Custom Buttons */
.back-button2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 100px;
  text-align: center;
  text-decoration: none;
}

.back-buttons-container2 {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.table-view-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0070f3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.table-view-button:hover {
  background-color: #0058c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.property-search-button2 {
  background-color: #6389ae;
}

.property-search-button2:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-button2 {
  background-color: #fb9405;
}

.home-button2:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.browser-back-button {
  background-color: #ff9999;
  color: white;
  border: none;
}

.browser-back-button:hover {
  background-color: #ff6666;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button2 .material-icons {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* RTL-specific adjustments for highlight */
.highlight {
  background-color: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}
.info-window-title {
  text-decoration: none;
  color: #007bff;
}

.info-window-title:hover {
  text-decoration: underline;
}

.info-window {
  
  font-size: 14px;
  max-width: 280px;  /* Increased from 200px */
  width: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-window h3 {
 margin: 0 0 8px 0;
  font-size: 14px;
  width: 100%;
  text-align: right;
  word-wrap: break-word;
  color: #007bff;
}

.info-window p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  max-height: 50px;
  width: 100%;
  text-align: right;
  /* autoprefixer: ignore next */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-window-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin: 8px 0;
  max-width: none;  /* Remove max-width restriction */
  max-height: none; /* Remove max-height restriction */

}
.property-list-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
/* Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
 }
 
 .spinning {
  animation: spin 1.5s linear infinite;
 }
 
 /* Responsive Design */
 @media (max-width: 1400px) {
  .property-list-container {
    padding: 1.5rem;
  }
  
  .property-list-image-container {
    flex: 0 0 200px;
  }
 }
 
 @media (max-width: 1200px) {
  .content-columns {
    flex-direction: column;
    
  }
 
  .map-column {
    order: -1;
  }
 
 }
 
 @media (max-width: 768px) {
  .property-list-container {
    padding: 0.5rem;
  }
  .property-list-container3 {
    padding: 0rem;
  }
  .property-list-container4 {
    padding: 0rem;
  }
  .property-list-item {
    display: flex; 
    flex-direction: row-reverse;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .property-list-item2 {
    display: flex; 
    flex-direction: row-reverse;
    padding: 0.5rem;
    gap: 0.5rem;
  }
 
  .property-list-image-container {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
    align-self: stretch;
  }
 
  .property-list-image-wrapper {
    height: 100%; /* Fill container height */
    min-height: 120px; /* Minimum height */
    padding-bottom: 0;
  }
 
  .property-list-info {
    flex: 2 1;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
 
  .property-list-header {
    display: contents;
  }
 
  .property-list-header h3 {
    order: 1;
    margin: 0;
  }
 
  .property-list-title {
    font-size: 1rem;
    line-height: 1;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
 
  .property-list-description:first-of-type {
    margin: 0.15rem 0;
    font-size: 0.85rem;
    order: 2;
  }
 
  .property-list-location {
    margin: 0.1rem 0;
    font-size: 0.85rem;
    order: 3;
  }
 
  .property-list-price {
    margin: 0.15rem 0;
    font-size: 0.85rem;
    order: 4;
  }
 
  .property-list-description:not(:first-of-type),
  .property-list-insertion-date {
    display: none;
  }
 
  .property-list-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    order: 5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
  }
 
  .icon-button {
    padding: 4px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .favorite-icon,
  .hide-icon,
  .share-icon {
    font-size: 18px;
  }
 
  .badge {
    padding: 2px 4px;
    font-size: 0.75rem;
    margin: 0 2px;
  }
 
  .property-stamp {
    font-size: 16px;
    padding: 4px 8px;
  }
 
  .new-property-tag {
    font-size: 0.7rem;
    padding: 2px 4px;
  }
 
 .property-list-summary {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


.summary-right {
  flex-shrink: 0;
  margin-bottom: 0;
}

.pdf-link {
  flex: 0 0 auto;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  min-width: auto;
}

.property-list-pagination {
  flex-wrap: nowrap;
  gap: 0.25rem;
  justify-content: center;
  width: 100%;
  margin: 1rem 0;
  padding: 0.5rem;
}

.property-list-pagination-button {
  padding: 0.4rem 0.6rem;
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.search-parameters {
  padding: 0.5rem;
}

.search-parameter-container {
  gap: 0.3rem;
}

.search-parameter-item {
  width: calc(100% - 10px);
  padding: 0.4rem 0.5rem;
  flex-direction: column;
  align-items: flex-start;
}

.back-buttons-container2 {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
   margin: 1rem 0;
}

.back-buttons-container2 button,
 .back-buttons-container2 a,
 .back-buttons-container2 .pdf-link {
  flex: 1 1;
  justify-content: center;
  text-align: center;
  min-width: 0;
}
 }

 /* SearchResults mobile styles - copy of PropertyList action button styles */
 @media (max-width: 768px) {
  /* Action buttons for SearchResults component */
  .search-results .property-list-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    order: 5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
  }
 
  .search-results .icon-button {
    padding: 4px;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .search-results .favorite-icon,
  .search-results .hide-icon,
  .search-results .share-icon {
    font-size: 18px;
  }
 }

 /* Adjust map height for different screen sizes */
 @media (max-width: 1200px) {
  .sticky-map {
    height: 440px;
    width: 100%;
  }
 }
 
 @media (max-width: 768px) {
  .sticky-map {
    height: 440px;
    width: 100%;
  }
 }
 @media (max-width: 480px) {
  .property-list-title {
    font-size: 1rem;
  }
  .property-list-number {
    font-size: 1rem;
  }
  .badge {
    margin: 2px;
    font-size: 0.9rem;
  }
  .coverage-notice {
    display: none;
  }
}

@media (max-width: 480px) {
  .info-window {
    max-width: 220px;
  }
  .info-window-image {
    height: 120px;
  }
}
.no-results-container {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.no-results-content {
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  word-wrap: break-word;
}

.no-results-icon {
  font-size: 4rem;
  color: #666;
  margin-bottom: 1rem;
}

.no-results-text {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  max-width: 100%;
}

.no-results-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* Keep your existing button styles */
.back-button2,
.property-search-button2,
.home-button2,
.table-view-button,
.browser-back-button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ensure buttons stack nicely on mobile */
@media (max-width: 480px) {
  .no-results-container {
    padding: 1rem;
  }
  
  .no-results-content {
    padding: 2rem 1rem;
    width: 95%;
    max-width: 100%;
  }
  
  .no-results-text {
    font-size: 1.25rem;
  }
  
  .no-results-buttons {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .back-button2,
  .table-view-button,
  .browser-back-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    flex: 1 1;
    justify-content: center;
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    max-width: none;
    white-space: nowrap;
  }
  
  .mobile-icon-only .button-text {
    display: none;
  }

  .mobile-icon-only {
    padding: 0.75rem !important;
    min-width: 44px;
    min-height: 44px;
    flex: 1 1;
  }
}

/* Swipe indicators removed - no longer needed */
.footer-branding {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  color: #666;
}

.footer-branding p {
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .footer-branding {
    margin-top: 1rem;
    padding: 0.5rem;
  }
  
  .footer-branding p {
    font-size: 1rem;
  }
}
.hidden-count {
  display: none;
}
.filter-section {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.filter-section label {
  margin-right: 10px;
  font-weight: bold;
}

.status-filter-select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  font-family: 'Amiri', sans-serif;
  cursor: pointer;
  min-width: 120px;
}

@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-filter-select {
    margin-top: 5px;
    width: 100%;
  }
}
.lazy-load-image-background.blur {
  filter: blur(15px);
}

.lazy-load-image-background.blur.lazy-load-image-loaded {
  filter: blur(0);
  transition: filter .3s;
}

.lazy-load-image-background.blur > img {
  opacity: 0;
}

.lazy-load-image-background.blur.lazy-load-image-loaded > img {
  opacity: 1;
  transition: opacity .3s;
}

