/* Region Page Styles */

/* Region Hero Section */
.region-hero {
  height: 500px;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.region-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.region-hero-content {
  position: relative;
  color: var(--text-color-2);
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.region-hero-content h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

.region-hero-content p {
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin: 0 auto;
}

/* Region Container */
.region-container {
  width: 100vw;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1440px;
  margin: 0 20px;
}

/* Region Content */
.region-content {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.region-info {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.region-info-header h3 {
  text-align: justify;
}

.region-info h2 {
  font-size: 32px;
  color: var(--heading-color);
  margin-bottom: 20px;
  font-weight: 300;
  border-left: 3px solid var(--primary-color-4);
  padding-left: 15px;
}

.region-description {
  margin-bottom: 40px;
}

.region-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
}

/* Region Highlights - Updated Design */
.region-highlights h3 {
  font-size: 24px;
  color: var(--heading-color);
  margin-bottom: 25px;
  font-weight: 300;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100vw;
  margin: 30px 0;
  gap: 0; /* Remove any gap between items */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* Center the grid */
  max-width: 100vw;
  overflow: hidden;
}

.highlight-item {
  height: 400px; /* Increased height for more impact */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.highlight-item:hover {
  z-index: 3; /* Ensure hovered item appears above others */
}

.highlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.highlight-item:hover .highlight-overlay {
  background-color: var(
    --background-color-secondary
  ); /* Change overlay color on hover */
  opacity: 0.8; /* Make it more opaque on hover */
  box-shadow: inset 0 0 0 4px var(--primary-color-4); /* Creates a border effect on hover */
}

.highlight-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px; /* Increased padding */
  color: var(--text-color-2);
  z-index: 2;
  transition: all 0.8s ease;
  transform: translateY(0);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.highlight-content {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.highlight-content h4 {
  font-size: 28px; /* Increased font size */
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Enhanced text shadow */
  color: #ffffff;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.highlight-content h4:after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color-4);
  transition: width 0.6s ease;
}

.highlight-item:hover .highlight-content h4:after {
  width: 100%;
}

.highlight-content p {
  font-size: 17px; /* Increased font size */
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9); /* Enhanced text shadow */
  max-width: 95%;
  opacity: 0.9;
  transform: translateY(10px);
  transition: all 0.5s ease;
  text-align: justify;
}

.highlight-item:hover .highlight-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Region Properties */
.region-properties {
  width: 100%;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.region-properties h2 {
  font-size: 32px;
  color: var(--heading-color);
  margin-bottom: 30px;
  font-weight: 300;
  border-left: 3px solid var(--primary-color-4);
  padding-left: 15px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
}

.property-card {
  background-color: var(--background-color);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.property-card-image {
  height: 220px;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.property-card:hover .property-card-image img {
  transform: scale(1.05);
}

.property-card-content {
  padding: 20px;
}

.property-card-content h3 {
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card-price {
  margin-bottom: 20px;
}

.property-card-price p {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color-4);
  margin: 0;
}

.property-card-btn {
  display: block;
  width: 100%;
  background-color: var(--primary-color-4);
  color: var(--text-color-2);
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.property-card-btn:hover {
  background-color: var(--primary-color-3);
  color: var(--text-color-2);
}

/* Region Contact Section - Enhanced */
.region-contact {
  background-color: var(--secondary-color-2);
  width: 100%;
  margin-top: 60px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-content {
  width: 100%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.region-contact h2 {
  width: 100%;
  font-size: 32px;
  color: var(--primary-color-5);
  margin-bottom: 25px;
  font-weight: 300;
  border-left: 3px solid var(--primary-color-4);
  padding-left: 15px;
}

.region-contact p {
  width: 100%;
  font-size: 16px;
  margin-bottom: 30px;
  color: var(--text-color-2);
  line-height: 1.8;
}

.contact-actions {
  width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.contact-btn {
  display: inline-block;
  padding: 16px 32px;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border-radius: 2px;
}

.primary-btn {
  background-color: var(--primary-color-4);
  color: var(--text-color-2);
}

.primary-btn:hover {
  background-color: var(--primary-color-3);
  color: var(--text-color-2);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color-4);
  border: 1px solid var(--primary-color-4);
}

.secondary-btn:hover {
  background-color: rgba(var(--primary-color-4-rgb), 0.1);
  transform: translateY(-2px);
}

.contact-image {
  width: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
}

/* No Properties Message */
.no-properties {
  text-align: center;
  padding: 40px 0;
  background-color: var(--background-color-2);
  margin-bottom: 30px;
}

.no-properties p {
  font-size: 18px;
  color: var(--text-color);
}

/* Add styles for subcategories display */

/* Region Subcategories Section */
.region-subcategories {
  margin-bottom: 40px;
}

.region-subcategories h3 {
  font-size: 24px;
  color: var(--heading-color);
  margin-bottom: 20px;
  font-weight: 300;
  border-left: 3px solid var(--primary-color-4);
  padding-left: 15px;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.subcategory-card {
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color-4);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--background-color);
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.subcategory-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.subcategory-card:hover .subcategory-image {
  transform: scale(1.05);
}

.subcategory-card h4 {
  padding: 15px;
  margin: 0;
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    padding: 50px;
  }
}

@media (max-width: 992px) {
  .region-hero {
    height: 400px;
  }

  .region-hero-content h1 {
    font-size: 36px;
  }

  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .region-contact {
    flex-direction: column;
  }

  .contact-content {
    width: 100%;
    padding: 40px;
    order: 1;
  }

  .contact-image {
    width: 100%;
    height: 300px;
    order: 0;
  }

  .region-contact h2 {
    font-size: 30px;
  }

  .contact-image {
    height: 250px;
    order: -1;
  }

  .highlight-item {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .region-hero {
    height: 350px;
  }

  .region-hero-content h1 {
    font-size: 30px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    margin: 20px 0;
  }

  .highlight-item {
    height: 400px;
  }

  .highlight-content h4 {
    font-size: 24px;
  }

  .highlight-content p {
    font-size: 16px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .region-info h2,
  .region-properties h2,
  .region-contact h2 {
    font-size: 28px;
  }

  .subcategories-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
  }

  .contact-content {
    padding: 35px 25px;
  }

  .region-contact h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .region-contact p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .contact-actions {
    gap: 15px;
  }

  .contact-btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  .contact-image {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .region-hero {
    height: 250px;
  }

  .region-hero-content h1 {
    font-size: 24px;
  }

  .region-contact {
    padding: 30px 20px;
  }

  .contact-btn {
    width: 100%;
  }

  .highlight-item {
    height: 350px;
  }

  .highlight-content {
    padding: 20px;
  }

  .highlight-content h4 {
    font-size: 22px;
  }

  .highlight-content p {
    font-size: 15px;
  }

  .contact-content {
    padding: 30px 20px;
  }

  .region-contact h2 {
    font-size: 24px;
    padding-left: 12px;
  }

  .region-contact p {
    font-size: 14px;
    line-height: 1.6;
  }

  .contact-actions {
    flex-direction: column;
    gap: 12px;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .contact-image {
    height: 200px;
  }
}

@media (max-width: 400px) {
  .contact-content {
    padding: 25px 15px;
  }

  .region-contact h2 {
    font-size: 22px;
  }
}
