* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
/* General Page Styling */
/* Duplicate navbar styling removed. Relies on global styles.css and responsive.css */
 
  
/* Registration Box */
/* Registration Box */
.container {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    display: flex ;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 100vh;
}

.login-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    height: 70vh;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08); /* subtle shadow */
    overflow: hidden; 
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.left-side {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 65%;
    padding-right: 60px;
}

.left-side h2 {
    color: #1e3b8b;
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 800;
}

.left-side p {
    color: #475569;
    font-size: 1.1em;
    line-height: 1.6;
}

.log_regi {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    width: 700px;
    border: 1px solid #e2e8f0;
}

.form-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-items .input-lable {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-items .input-lable .valu {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title */
h2 {
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 700;
}

/* Input Fields */
input[type="text"], input[type="email"], input[type="password"], input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* File Input Styling */
input[type="file"] {
    background-color: #ffffff;
    padding: 10px;
}

/* Submit Button */
button {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Login Link */
p {
    margin-top: 15px;
    font-size: 14px;
}

p a {
    color: #007bff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}


/* Search Bar Section */
.searchbar {
    /* max-width: 800px; */
    /* margin: 100px auto; */
    margin-bottom: 30vh;
 padding: 180px 300px 120px;
   background: repeating-radial-gradient(rgb(255, 255, 255), rgb(254, 228, 232), rgb(255, 255, 255));
    /* border-radius: 12px; */
    text-align: center;
    display: flex
;
    flex-direction: column;
    align-items: center;
}

.searchbar h2 {
    color: #333;
    margin: 18px;
}

.searchbar h1 {
  color: #0048ff;
  margin: 12px;
  font-size: 65px;
}

.searchbar p {
    color: #666;
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 29px;
    max-width: 800px;

}


/* Search Container */
.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-container select,
.search-container input {
    padding: 10px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.search-container input {
    width: 250px;
}

.search-container button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    max-width: 125px;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Results Section */
#results {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Property Box */
.property-box {
  width: 100%;
  /* max-width: 706px; */
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 15px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.property-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* .pro-img{
  max-width: 20px;
} */

.property-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.property-box h3 {
  font-size: 22px;
  color: #333;
  margin: 10px 0;
}


.property-box p {
  margin: 8px 0;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  text-align: left;
  padding: 0 5px;
}

/* Individual Classes */
.property-location {
  font-weight: 500;
  color: #2c3e50;
}

.property-rent {
  color: #27ae60;
  font-weight: bold;
  background-color: #eafaf1;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
}

.property-type {
  font-style: italic;
  color: #8e44ad;
}

.property-owner {
  font-weight: 500;
  color: #34495e;
}

.property-contact {
  color: #e67e22;
  font-family: 'Courier New', Courier, monospace;
  background-color: #fff3e0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.property-status {
  margin-top: 10px;
  font-size: 15px;
  font-weight: bold;
}

.property-status .available {
  color: #2ecc71;
}

.property-status .not-available {
  color: #e74c3c;
}

.property-box .available {
  color: green;
  font-weight: bold;
}

.property-box .not-available {
  color: red;
  font-weight: bold;
}

.property-box button,
.property-box .view-details-btn {
  display: inline-block;
  margin: 8px 5px 0;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-size: 14px;
  width: 135px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.property-box button:hover,
.property-box .view-details-btn:hover {
  background-color: #0056b3;
}

.wishlist-btn {
  background-color: #ff4d4d;
}

.wishlist-btn:hover {
  background-color: #cc0000;
}

.book-btn {
  background-color: #28a745;
}

.book-btn:hover {
  background-color: #1e7e34;
}


/* ======= Latest Properties Section ======= */
.latest-properties {
  display: flex;
  text-align: center;
  padding: 30px;
  background: #f9f9f9;
  /* margin-top: 9vh; */
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.latest-properties h2 {
  color: #333;
  font-size: 47px;
  margin-bottom: 22px;
}


.property-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;
  margin-top: 20px;
}

.property-card {
  width: 360px;
  font-family: sans-serif;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.property-card:hover {
  transform: scale(1.05);
  box-shadow: rgba(7, 0, 97, 0.449) 0px 4px 6px;
}

.property-image {
  position: relative;
  width: 100%;
  height: 167px;
  overflow: hidden;
  box-shadow: 0 0 10px black;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.availability {
  position: absolute;
  top: 10px;
  left: 10px;
  background: green;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
}

.availability.unavailable {
  background: red;
}

.property-info {
  padding: 15px;
  text-align: left;
  position: relative;
}

.price {
  font-size: 17px;
  color: #E63946;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 23px;
}

.title {
  font-size: 20px;
  color: #333;
  margin: 5px 0;
}

.location {
  font-size: 15px;
  color: #342525;
  margin: 10px 0 3px 20px;
}

.details {
  font-size: 14px;
  color: #302626;
  margin: 0 0 3px 20px;
}

.upload-date {
  font-size: 13px;
  margin: 0 0 14px 20px;
}

.view-details {
  display: flex;
  justify-self: center;
  width: 18vh;
  text-align: center;
  background: linear-gradient(45deg, rgb(48 0 249), #ff08ca);
  color: white;
  padding: 10px;
  margin-top: 10px;
  text-decoration: none;
  border-radius: 18px;
  justify-content: center;
  align-items: center;

}

.view-details:hover {
  background: linear-gradient(45deg, rgb(255, 114, 203), #353e9f);
}

/* No Properties Message */
.no-properties {
  color: red;
  font-size: 18px;
}

.load-more-pro {
  background: linear-gradient(45deg, rgb(249, 0, 245), #020aff);
  color: #fff;
  border: 1px solid rgb(241, 241, 241);
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 40PX;
}

#loadingText {
  margin-top: 20px;
}


/* how its work */

.how-it-works {
    /* width: 90%; */
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* height: 80vh; */
    justify-content: center;
  }
  
  .how-it-works h2 {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .how-it-works p {
    font-size: 22px;
    color: #666;
    margin-bottom: 40px;
  }
  
  .steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
  }
  
  .step {
    width: 294px;
    text-align: center;
    background-color: rgb(241 252 255 / 87%);
      padding: 10px;
  }
  
  .step img {
    width: 40px;
    height: 40px;
    background-color: #eaf1ff;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .step h3 {
    font-size: 23px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .step p {
    font-size: 20px;
    color: #666;
    font-weight: 400;
    font-family: "Barlow Semi Condensed", sans-serif;
  }
  
  .search-btn {
    margin-top: 30px;
  }
  
  .search-btn a {
    background-color: #2a68ff;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: inline-block;
  }
  
  .search-btn a:hover {
    background-color: #1a50cc;
  }

  .feedback_container{
        display: flex        ;
    background: repeating-radial-gradient(rgb(255, 255, 255), rgb(254, 228, 232), rgb(255, 255, 255));
        flex-direction: column;
    align-items: center;
    width: 100%;
    height: 90vh;
    /* max-width: 774vh; */
    justify-content: center;
  }

  .feedback_container h2{
        margin-bottom: 16px;
    font-size: 2.5em;
    color: #5006fb;
  }
   .feedback_container h3{
        margin-bottom: 16px;
    font-size: 2em;
  
  }
  .feed-submit{
    display: flex;
    flex-direction: column;
    align-items: center;
      justify-content: center;
  }
  #feedback_type{
    padding: 10px;
        margin: 14px;
  }

  #feedback_text{
    padding: 10px;
    font-size: 1em;
    margin: -44px;
    box-shadow: 0 0 10px rgb(193, 193, 252);
    border-radius: 10px;
    border: none;
  }

  .feed-btn{
    padding: 10px;
        border-radius: 24px;
         background: linear-gradient(45deg, rgb(249, 0, 228), #0808ff);
  }

/* ==========================================================================
   STUDENT LOGIN & REGISTRATION RESPONSIVE STYLES
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* Navbar adjustments */
  .navbar {
    position: relative !important;
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
  
  .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5px !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
  }
  
  .nav-links li {
    margin: 5px !important;
  }
  
  .nav-links a {
    font-size: 14px !important;
    padding: 6px 10px !important;
  }

  /* Form Container Adjustments */
  .container {
    height: auto !important;
    min-height: 100vh !important;
    padding: 100px 15px 40px 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .login-card-container {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    padding: 24px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  }

  .left-side {
    display: none !important; /* Hide left welcome panel on mobile to save space */
  }

  .log_regi {
    width: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  .log_regi h2 {
    font-size: 24px !important;
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  /* Registration page items */
  .form-items .input-lable {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .form-items .input-lable .valu {
    width: 100% !important;
  }
  
  input[type="text"], input[type="email"], input[type="password"], input[type="file"] {
    font-size: 15px !important;
    padding: 10px !important;
    margin: 6px 0 12px 0 !important;
  }
  
  button {
    padding: 12px !important;
    font-size: 15px !important;
    margin-top: 10px !important;
  }
}

@media screen and (max-width: 480px) {
  .navbar .logo h2 {
    font-size: 20px !important;
  }

  .nav-links a {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }

  .container {
    padding: 80px 10px 30px 10px !important;
  }

  .login-card-container {
    padding: 20px !important;
    border-radius: 12px !important;
  }
}