body {
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

.fa-compass {
    scale: 1.5;
}

/* Footer */
.f {
  height: 10rem;
  background-color: #c8c7c7;
}

.f-container {
  /* width: 100vw; */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: larger;
}

.f-social-media {
  color: black;
}

.f-social-media i {
  transition: all;
  transition-duration: 0.2s;
}

.f-social-media i:hover {
  scale: 1.5;
  color: red;
}

.f-brand {
  font-weight: bold;
}

.f-links a {
  text-decoration:none;
  color: black;
}

/* Card */

.listing-card {
  border: none;
  border-radius: 1rem;
  margin-bottom: 2rem;
  background-color: #faf7f7;
  /* padding: 10px; */
}

.card-link {
  text-decoration: none;
}

.card-img-top {
  width: 100%;
  height: 18rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  object-fit: cover;
}

.card-img-overlay {
  opacity: 0;
  transition: all;
  transition-duration: 0.2s;
}

.card-body {
  padding: 10px;
}

.card-title {
  margin-bottom: 0.2rem;
}

.card-bio {
  opacity: 0.5;
  height: 2.5rem;
}

.card-price {
  font-weight: 500;
  color: orange;
  font-size: 1.2rem;
  text-align: right;
}

.card-img-overlay:hover {
  opacity: 0.2;
  background-color: white;
}

/* Show Page */

/* .show-card {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  margin-top: 1rem;
}

.show-img {
  height: 65vh;
  border-radius: 1.5rem;
  object-fit: cover;
}

.show-card-body {
  width: 70%;
  display: flex;
  flex-direction: column;
} */

/* General Reset */
.show-main-cimtainer {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Container for the listing details */
.listing-details-container {
  max-width: 100vw;
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  gap: 30px;
}

/* Listing Image */
.listing-image {
  flex: 1;
  max-width: 30%;
}

.listing-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Listing Information */
.listing-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.listing-title {
  font-size: 2rem;
  margin: 0;
  color: #222;
  line-height: 1.9rem;
}

.listing-title-owner {
  color: gray;
  font-size: large;
}

.listing-location {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

.listing-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.listing-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: orange;
  margin: 0;
}

/* Listing Actions */
.listing-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.edit-button,
.delete-button,
.button-1, .button-2 {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.edit-button, .button-1 {
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.edit-button:hover, .button-1:hover {
  background-color: #0056b3;
}

.delete-button, .button-2 {
  background-color: #dc3545;
  color: #fff;
}

.delete-button:hover, .button-2:hover {
  background-color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .listing-details-container {
    flex-direction: column;
    padding: 15px;
  }

  .listing-image {
    max-width: 100%;
  }

  .listing-title {
    font-size: 1.5rem;
  }

  .listing-location {
    font-size: 1rem;
  }

  .listing-price {
    font-size: 1.2rem;
  }

  .listing-actions {
    flex-direction: column;
  }

  .edit-button,
  .delete-button {
    width: 100%;
    text-align: center;
  }
}

/* reviews */

.review-card {
  background-color: transparent;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-card-rating {
  color: orange
}


/* Map */

#map {
  height: 400px;
  width: 60%;
  border-radius: 1rem;
}

.map-label-span{
  font-weight: bold;
}

.map-container {
  position: relative;
  left: 32%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  margin-bottom: 40px;
}

/* Map Fallback Styles */
.map-fallback {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.map-fallback::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(108,117,125,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.fallback-content {
  text-align: center;
  color: #495057;
  z-index: 1;
  position: relative;
  max-width: 400px;
}

.fallback-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.fallback-icon i {
  color: #6c757d;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fallback-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #343a40;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fallback-message {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #6c757d;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.fallback-location-info {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  /* backdrop-filter: blur(10px); */
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #495057;
}

.location-detail:last-child {
  margin-bottom: 0;
}

.location-detail i {
  color: #0dcaf0;
  font-size: 1rem;
  min-width: 16px;
}

.location-detail span {
  text-align: left;
}

.fallback-status {
  display: flex;
  justify-content: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  /* backdrop-filter: blur(5px); */
  border: 1px solid #dee2e6;
  color: #6c757d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #ffc107;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .map-fallback {
    padding: 1.5rem;
  }
  
  .fallback-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .fallback-title {
    font-size: 1.25rem;
  }
  
  .fallback-message {
    font-size: 0.9rem;
  }
  
  .fallback-location-info {
    padding: 1rem;
  }
  
  .location-detail {
    font-size: 0.85rem;
  }
  
  #map {
    width: 100%;
  }

  .map-container {
    left: 0;
    align-items: center;
  }
}

/* Location input in addNewListing form */

.location-suggestion {
  cursor: pointer;
}


/* search box */

.search-box {
  display: flex;
}

.search-inp {
  background: transparent;
  outline: none;
  border: none;
}

.search-inp-box {
  background-color: rgb(224, 223, 223);
  padding: 8px 10px;
  border-radius: 0 0.7rem 0.7rem 0; 

}

.search-btn {
  color: #0dcaf0;
  background: transparent;
  border: none;
  transition: all 0.4s ease;
}

.search-btn-box {
  background-color: rgb(224, 223, 223);
  padding: 5px 10px;
  border-radius: 0.7rem 0 0 0.7rem;
  display: flex;
  align-items: center;  
  transition: all 0.4s ease;
}

.search-btn-box:hover {
  background-color: #0dcaf0;
}

.search-btn-box:hover .search-btn {
  scale:1.2;
  color: black;
}

.search-btn-box:active {
  scale: 0.9;
}

.filter-box {
  width: auto;
  display: flex;
  text-wrap-mode: nowrap;
  opacity: 0.7;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 2px solid gray;
  border-radius: 0.8rem;
  padding: 0.5rem 1rem;
}

.filter-box:hover {
  opacity: 1;
  border:2px solid #0dcaf0;
  color: #0dcaf0;
}
 
.filter-box-text {
  opacity: 0.5;
  margin-bottom: 0;
}

.filter-container {
  width: 100%;
}

.filter-options {
 width: 80%;
 overflow-y: auto;
 scrollbar-width: none;
}

.filter-options a {
  text-decoration: none;
  color: black;
}

@media (max-width: 768px) {
  .filter-options {
    width: 100%;
  }

  .filter-container {
    flex-direction: column;
  }
}



/* booking */

.booking-card {
  border: none;
}

@media (max-width: 768px) {
  .booking-card {
    width: 100%;
    margin: 0;
  }

  .card-img-top {
    width: 100%;
  }
}



/* General */

.form-control:focus, .form-select:focus  {
  box-shadow:0 0 300px #0dcaf0;
}

.form-check-input:focus {
  box-shadow:0 0 10px #0dcaf0;
}

.form-check-input:checked {
  background-color: #0dcaf0;
border-color: #0dcaf0;
}

/* Map Simple Message Styles */
.map-simple-message {
  height: 100%;
  width: 100%;
  background: #f8f9fa;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.simple-message-content {
  text-align: center;
  color: #6c757d;
  max-width: 300px;
}

.simple-message-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #adb5bd;
}

.simple-message-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #495057;
}

.simple-message-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #6c757d;
}

.simple-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #e9ecef;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #495057;
  border: 1px solid #dee2e6;
}

.simple-address i {
  color: #0dcaf0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .map-simple-message {
    padding: 1.5rem;
  }
  
  .simple-message-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .simple-message-title {
    font-size: 1rem;
  }
  
  .simple-message-text {
    font-size: 0.85rem;
  }
  
  .simple-address {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}


/* no listing message */
.no-listing-msg {
  margin-top: 1rem;
}