/* Apartment Selection Styles */
/* Save Button */
.apartment-selection-save-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 50%;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  padding: 0;
}
.apartment-selection-save-btn:hover {
  transform: scale(1.1);
  background-color: #fff0f0;
}
.apartment-selection-save-btn svg {
  width: 18px;
  height: 18px;
  color: #d80000;
  transition: all 0.3s ease;
}
.apartment-selection-save-btn:hover svg {
  transform: scale(1.1);
}
.apartment-selection-save-btn.saved {
  background-color: #d80000;
}
.apartment-selection-save-btn.saved svg {
  color: white;
  fill: white;
}
/* Floating Button */
.apartment-selection-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  height: 50px;
  padding: 0 20px;
  background-color: #d80000;
  color: white;
  border: none;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
  font-size: 16px !important;
  font-weight: 400 !important;
}
.apartment-selection-floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}
.apartment-selection-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.apartment-selection-icon svg {
  width: 18px;
  height: 18px;
  color: white;
  fill: white;
}
/* Modal */
.apartment-selection-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.apartment-selection-modal.active {
  display: flex;
  pointer-events: auto;
}
.apartment-selection-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: 20px;
  margin-bottom: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: auto;
}
.apartment-selection-modal.active .apartment-selection-modal-content {
  transform: translateX(0);
}
.apartment-selection-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  background-color: #d80000 !important;
  color: white;
}
.apartment-selection-modal-header h3 {
  margin: 0;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: white;
}
.apartment-selection-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 0;
  line-height: 1;
}
.apartment-selection-modal-body {
  padding: 15px;
  overflow-y: auto;
  max-height: calc(80vh - 120px);
}
.apartment-selection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apartment-selection-item {
  display: flex;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.apartment-selection-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e0e0e0;
}
.apartment-selection-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.apartment-selection-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 12px;
}
.apartment-selection-title {
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  margin: 0 0 10px 0;
  color: #333 !important;
}
.apartment-selection-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px; /* Increased from 4px to 10px */
}
.apartment-selection-address {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin: 0;
}
.apartment-selection-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  font-size: 0.75rem !important;
  color: #666;
}
.apartment-selection-feature {
  display: flex;
  align-items: center;
  gap: 5px;
}
.apartment-selection-feature i {
  color: #d80000;
  font-size: 0.85rem;
}
.apartment-selection-remove {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: #d80000;
  text-decoration: none;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
  background: none !important;
  border: none;
  padding: 0;
}
.apartment-selection-remove:hover {
  text-decoration: underline;
}
.apartment-selection-modal-footer {
  padding: 12px 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.apartment-selection-copy-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.apartment-selection-copy-btn:hover {
  background-color: #45a049;
}
.apartment-selection-clear-btn {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  padding: 8px 12px;
  display: inline-block;
}
.apartment-selection-clear-btn:hover {
  color: #333;
}
.apartment-selection-loading {
  text-align: center;
  padding: 15px;
  color: #666;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
}
.apartment-selection-empty {
  text-align: center;
  padding: 20px 15px;
  color: #666;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
}
/* Notification */
#apartment-selection-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  z-index: 9999;
  font-size: 14px !important;
  font-weight: 400 !important;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
#apartment-selection-notification.active {
  transform: translateY(0);
  opacity: 1;
}
/* Counter badge */
.apartment-selection-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: white;
  color: #d80000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Responsive adjustments */
@media (max-width: 767px) {
  .apartment-selection-save-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .apartment-selection-save-btn {
    width: 25px !important;
    height: 25px !important;
  }
  .apartment-selection-modal-content {
    margin-right: 0px;
    max-height: 95vh;
  }
  .apartment-selection-modal-body {
    max-height: calc(95vh - 140px);
  }
  .apartment-selection-floating-btn {
    width: auto;
    padding: 0 15px;
    height: 45px;
    font-size: 14px !important;
  }
  .apartment-selection-count {
    display: none;
  }
  .apartment-selection-icon {
    margin-right: 0;
  }
  .apartment-selection-thumbnail {
    width: 90px;
    height: 90px;
  }
}
/* Selected Apartments Page Styles */
.selected-apartments-title {
  font-size: 1.2rem !important;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
  text-align: left;
}
/* Two-column layout */
.selected-apartments-layout {
  display: flex;
  gap: 20px;
  height: calc(100vh - 250px);
  min-height: 600px;
}
.selected-apartments-map-column {
  flex: 1;
  position: relative;
  height: 100%;
}
.selected-apartments-list-column {
  flex: 1;
  overflow-y: auto;
  padding-left: 10px;
}
/* Map styling */
#selected-apartments-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  height: 100%;
  width: 100%;
  min-height: 600px;
}
.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 30px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.map-loading:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid #d80000;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Enhanced Info Window Styling */
.map-info-window {
  padding: 0;
  font-family: inherit;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}
.info-window-header {
  padding: 12px 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}
.info-window-content {
  padding: 12px 15px;
}
.info-window-title {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}
.info-window-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #e0e0e0;
}
.info-window-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.info-window-price {
  padding: 0 0 10px 0;
  display: flex;
  align-items: baseline;
}
.price-amount {
  font-size: 18px;
  font-weight: 600;
  color: #d80000;
}
.price-period {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
}
.info-window-amenities {
  display: flex;
  gap: 10px;
  padding: 0 0 12px 0;
}
.info-window-amenities .amenity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 20px;
  font-size: 12px;
}
.info-window-actions {
  padding: 0;
  text-align: left;
}
.view-apartment-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #d80000;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
}
.view-apartment-link:hover {
  background-color: #b50000;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Google Maps InfoWindow customization */
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}
.gm-style .gm-style-iw-t::after {
  background: linear-gradient(45deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 51%, rgba(255, 255, 255, 0) 100%) !important;
  box-shadow: -2px 2px 2px 0 rgba(178, 178, 178, 0.4) !important;
}
/* List styling */
.selected-apartments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.selected-apartment-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.selected-apartment-item:hover {
  background-color: #f9f9f9;
  transform: translateY(-2px);
}
.selected-apartment-item.highlighted {
  box-shadow: 0 0 0 0px #d80000, 0 4px 12px rgba(0, 0, 0, 0.15);
  /*  transform: translateY(-5px);*/
  background-color: #fff0f0;
}
.selected-apartment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.selected-apartment-thumbnail {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e0e0e0;
}
.selected-apartment-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.selected-apartment-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.selected-apartment-title {
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  margin: 0 0 10px 0;
}
.selected-apartment-title a {
  color: #333;
  text-decoration: none;
}
.selected-apartment-title a:hover {
  color: #d80000;
  text-decoration: underline;
}
.selected-apartment-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.selected-apartment-address {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #666;
  margin: 0;
}
.selected-apartment-remove {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: #d80000;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}
.selected-apartment-remove:hover {
  text-decoration: underline;
}
.selected-apartment-link {
  display: flex;
  gap: 12px;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}
.selected-apartment-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.selected-apartment-map-btn {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: #333;
  text-decoration: none;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
}
.selected-apartment-map-btn:hover {
  background-color: #e0e0e0;
}
.selected-apartments-loading, .selected-apartments-empty, .selected-apartments-error {
  text-align: center;
  padding: 50px 20px;
  color: #666;
  font-size: 1.1rem;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
  .selected-apartments-layout {
    flex-direction: column;
    height: auto;
  }
  .selected-apartments-map-column {
    height: 500px;
  }
  .selected-apartments-list-column {
    height: auto;
    max-height: 600px;
    padding-left: 0;
    padding-top: 20px;
  }
}
@media (max-width: 768px) {
  .selected-apartment-thumbnail {
    width: 90px;
    height: 90px;
  }
  .selected-apartment-address-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .selected-apartment-remove {
    margin-left: 0;
    margin-top: 5px;
  }
  .selected-apartments-map-column {
    height: 400px;
  }
}
@media (max-width: 576px) {
  .selected-apartments-map-column {
    height: 350px;
  }
}
/* Features styling */
.selected-apartment-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.8rem !important;
  color: #666;
}
.selected-apartment-feature {
  display: flex;
  align-items: center;
  gap: 5px;
}
.selected-apartment-feature i {
  color: #d80000;
  font-size: 0.9rem;
}
@media (max-width: 767px) {
  .selected-apartment-features {
    flex-direction: column;
    gap: 5px;
  }
}
.selected-apartment-map-row {
  margin-top: 8px;
}
.selected-apartment-map-link {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: #4caf50 !important;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.selected-apartment-map-link:hover {
  text-decoration: underline;
}
/* Placeholder for broken images */
.selected-apartment-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apartment-selection-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.selected-apartment-thumbnail, .apartment-selection-thumbnail {
  background-color: #e0e0e0;
}
.apartment-selection-modal .apartment-selection-item {
  display: flex;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  position: relative;
  cursor: default;
}
.apartment-selection-modal .apartment-selection-title {
  color: #333 !important;
}
.apartment-selection-modal .apartment-selection-address {
  color: #666 !important;
}
.apartment-selection-modal .apartment-selection-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}