/* Properties by City Widget Styles */

.elem-properties-by-city {
  width: 100%;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.elem-properties-by-city .properties-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.elem-properties-by-city .properties-states-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.elem-properties-by-city .property-state-column {
  border: none;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
}

.elem-properties-by-city .state-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #ccc;
}

.elem-properties-by-city .state-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.elem-properties-by-city .state-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.3px;
}

.elem-properties-by-city .properties-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.elem-properties-by-city .property-item {
  border-bottom: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.elem-properties-by-city .property-item:last-child {
  border-bottom: none;
}

.elem-properties-by-city .property-item:hover {
  padding-left: 0;
}

.elem-properties-by-city .property-name {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.elem-properties-by-city .property-name::after {
    content: '›';
    font-size: 14px;
    color: #aaa;
    opacity: 0;
    transition: opacity 0.2s;
}

.elem-properties-by-city .property-name:hover::after {
    opacity: 1;
}

.elem-properties-by-city .property-name:hover {
    color: #c89b3c;
}

.elem-properties-by-city .property-location {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #999;
}

.elem-properties-by-city .no-properties {
  margin: 0;
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 20px 0;
}

/* Map Sidebar Styles */
.elem-properties-by-city .properties-map-sidebar{
    background: #EFEFEF;
}

.elem-properties-by-city .map-header {
    border-bottom: none;
    padding: 28px 18px 24px;
    justify-items: center;
}

.view-property-link{
    display: block;
    background: #2D3440;
    color: #fff;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.2s;
    width: 140px;
}

.view-property-link:hover {
    background: #2e3f55;
    color: #fff;
}

.elem-properties-by-city .map-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #2D3440;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.elem-properties-by-city .map-embed-container {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.elem-properties-by-city .map-embed-container.fade-out {
  opacity: 0;
}

.elem-properties-by-city .map-embed-container iframe {
  width: 100% !important;
  height: 280px !important;
  border: none;
  display: block;
}

.elem-properties-by-city .no-map {
  margin: 0;
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 40px 0;
}

.mega-find-card{
    background: #1a2636;
    padding: 20px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-find-top{
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mega-find-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c89b3c;
    border-radius: 50px;
}

.mega-find-icon svg {
    width: 30px;
    fill: #c89b3c;
}

.mega-find-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #C09F55;
    text-transform: uppercase;
    line-height: 1.35;
    padding-top: 2px;
}

.mega-find-desc {
    font-size: 8px;
    color: #fff;
    font-weight: 400;
    line-height: 1.6;
}

.mega-find-btn {
    display: block;
    border: 1.5px solid #C09F55;
    color: #C09F55;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 11px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s, color 0.2s;
}

.mega-find-btn:hover {
    background: #c89b3c;
    color: #fff;
    border: 1.5px solid #c89b3c;
}

/* Map Sidebar Text & Buttons */
.elem-properties-by-city .map-location-label {
  font-size: 11px;
  font-weight: 700;
  color: #d4a574;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.elem-properties-by-city .map-description {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 20px;
}

.elem-properties-by-city .map-button {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background-color: transparent;
  border: 1px solid #d4a574;
  border-radius: 4px;
  color: #d4a574;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
}

.elem-properties-by-city .map-button:hover {
  background-color: #d4a574;
  color: #2a2e3e;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .elem-properties-by-city .properties-states-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .elem-properties-by-city .state-title {
    font-size: 14px;
  }

  .elem-properties-by-city .property-name {
    font-size: 12px;
  }

  .elem-properties-by-city .properties-map-sidebar {
    padding: 24px;
  }

  .elem-properties-by-city .map-embed-container iframe {
    height: 240px !important;
  }
}

@media (max-width: 768px) {
  .elem-properties-by-city .properties-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .elem-properties-by-city .properties-states-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .elem-properties-by-city .state-title {
    font-size: 13px;
  }

  .elem-properties-by-city .property-name {
    font-size: 12px;
  }

  .elem-properties-by-city .properties-map-sidebar {
    position: static;
    padding: 24px;
  }

  .elem-properties-by-city .map-embed-container iframe {
    height: 300px !important;
  }
}

@media (max-width: 480px) {
  .elem-properties-by-city .properties-states-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .elem-properties-by-city .property-state-column {
    padding: 0;
  }

  .elem-properties-by-city .state-title {
    font-size: 12px;
  }

  .elem-properties-by-city .property-name {
    font-size: 11px;
  }

  .elem-properties-by-city .properties-map-sidebar {
    padding: 20px;
  }

  .elem-properties-by-city .map-embed-container iframe {
    height: 250px !important;
  }
}
