/* Navbar */
.navbar {
  transition: background-color 0.4s ease;
}

/* Notifications bell */
.notification-bell {
    margin-left: auto;
    margin-right: 1rem;
    position: relative;
}

.notification-bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(100%, -50%);
    font-size: 0.7rem;
    padding: 3px 6px;
}

@media (min-width: 992px) {
    .notification-bell .badge {
        transform: translate(-20%, -10%);
    }
}

/* Main Content */

body {
    font-family: 'Segoe UI', sans-serif;
}

.hero {
    height: 300px;
    background-size: cover;
    background-position: center;
}

/* About Page Styling */
.about-section {
  background-color: #f8f9fa; /* light grey background */
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.about-section h2 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 5px;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* Contact Form Styling */
.contact-form {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Travel Log */

/* Travel Log Intro Section */
.travel-log-intro {
  background-color: #f8f9fa; /* Light gray background */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.travel-log-intro h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.travel-log-intro p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Profile Image Styling */
.travel-log-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* View_profile */

/* Images */
.narrow-body {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.carousel-wrapper {
  height: 400px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Request availablity */

.request-card {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
}

@media (min-width: 992px) {
  /* Apply only on large screens (≥ 992px, typical laptop width) */
  .request-card {
    margin-right: auto;
    margin-left: 0; /* Align left */
  }
}

/* messaging */

.messaging-container {
  background: #f8f9fa;
  border-radius: 8px;
  height: 530px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.messages-window {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: white;
}

.message-bubble {
  max-width: 75%;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  line-height: 1.4;
}

.message-sent {
  background-color: #d1e7dd;
  align-self: flex-end;
  text-align: right;
}

.message-received {
  background-color: #e2e3e5;
  align-self: flex-start;
  text-align: left;
}

.message-form {
  padding: 0.75rem;
  background-color: #f1f1f1;
  border-top: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-form form {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.message-form textarea,
.message-form input[type="text"] {
  flex-grow: 1;
  resize: none;
  border-radius: 20px;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  background-color: white;
}

.message-form button {
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-weight: 500;
}

@media (max-width: 576px) {
  .message-form {
    padding: 0.5rem;
  }

  .message-form textarea {
    font-size: 0.85rem;
  }

  .message-form button {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Edit Profile */
/* Ensure dropdown layers above modals (Location) */
.select2-container--open {
  z-index: 2000;
}

.select2-dropdown {
  position: absolute !important;
  z-index: 2001;
  top: 100% !important;
  left: 0 !important;
}

/* Star Rating */

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ccc;
  transition: color 0.2s;
}

/* Fill all previous stars when one is selected */
.star-rating input[type="radio"]:checked ~ label i {
  color: #ffc107;
}

/* Highlight stars on hover */
.star-rating label:hover ~ label i,
.star-rating label:hover i {
  color: #ffc107;
}

/* Ensure selected star is highlighted */
.star-rating input[type="radio"]:checked + label i {
  color: #ffc107;
}

/* Style all stars in .star-rating blocks */
.star-rating i.fas.fa-star {
  color: #ffc107 !important; /* filled yellow */
}

.star-rating i.far.fa-star {
  color: #ddd; /* unfilled muted */
}

/* Align review stars left in static display */
.card .star-rating {
  display: inline-flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

/* Static display for user reviews */
.review-stars {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
}

.review-stars i.fas.fa-star {
  color: #ffc107;
}

.review-stars i.far.fa-star {
  color: #ccc;
}

/* Prev/Next photo buttons on home page */
.custom-image-arrow {
  color: rgb(3 119 235) !important;
  font-size: calc(1.325rem + 3vw) !important;
}

/* Registration forms */
.auth-bg {
  background-image: url("/static/images/heroes/home-hero-new.00f553e05b9b.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

/* Registration form */
.register-container {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 700px;
}

.register-container .card {
  border: none;
  box-shadow: none;
}

.register-container .card-body {
  padding: 1rem 2rem;
}
