/* Base Styles */
body {
  background-color: #fff;
  color: #374151; /* gray-800 */
  font-family: ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #cce8e8; /* teal-200 */
}

.header-contact {
  color: #0f766e; /* teal-700 */
  font-weight: bold;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.header-link {
  color: #0f766e; /* teal-700 */
  font-weight: 600;
  text-decoration: none;
}

.header-button {
  background-color: #0f766e; /* teal-700 */
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #d1f5f5; /* teal-100 */
}

.nav-logo {
  height: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #0f766e; /* teal-700 */
  font-weight: 600;
  text-decoration: none;
}

.nav-button {
  padding: 0.25rem 1rem;
  background-color: #0f766e; /* teal-700 */
  color: #fff;
  border-radius: 0.25rem;
  font-weight: bold;
  text-decoration: none;
}

/* Main Container */
.main-container {
  max-width: 84rem; /* 7xl */
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #f9fafb; /* gray-50 */
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.filter-input,
.filter-select {
  flex: 1;
  border: 1px solid #d1d5db; /* gray-300 */
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

.filter-button {
  flex: 1;
  background-color: #0f766e;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

/* Property Grid */
.property-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Property Card */
.property-card {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: scale(1);
  transition-property: transform, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.property-image {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-image {
  transform: scale(1.1);
}

.property-content {
  padding: 1rem;
}

.property-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f766e; /* teal-700 */
}

.property-description {
  font-size: 0.875rem;
  color: #4b5563; /* gray-600 */
  margin-top: 0.25rem;
}

.property-price {
  margin-top: 0.5rem;
  color: #374151; /* gray-800 */
  font-weight: 600;
}

.property-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.action-link {
  flex: 1;
  text-decoration: none;
}

.action-button {
  width: 100%;
  background-color: #0f766e; /* teal-700 */
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.action-button:hover {
  background-color: #0d665e; /* teal-800 */
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem; /* max-w-md */
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #6b7280; /* gray-500 */
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-title {
  color: #0f766e; /* teal-700 */
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db; /* gray-300 */
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
}

.form-button {
  width: 100%;
  background-color: #0f766e; /* teal-700 */
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.form-button:hover {
  background-color: #0d665e; /* teal-800 */
}

/* Utilities */
.hidden {
  display: none;
}
 .property-image-container {
    position: relative;
    overflow: hidden;
  }
  .property-image {
    width: 100%;
    display: none;
    border-radius: 8px;
  }
  .property-image.active {
    display: block;
  }
  .image-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .prev-btn, .next-btn {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
  }
  
  /* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.image-modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#imageCaption {
  margin: 15px auto;
  text-align: center;
  color: #ccc;
  font-size: 18px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.image-modal-close:hover {
  color: #bbb;
}

  .share-menu-dropdown {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 180px;
  z-index: 9999;
  animation: fadeIn 0.2s ease-in-out;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #004d40;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.share-option:hover {
  background: #f3f3f3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
