/* Global Styles Start */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  /* prevent horizontal scroll */
}

html {
  scroll-behavior: smooth;
}

a {
  color: black;
  text-decoration: none;
}

.flag {
  max-width: 30px;
  width: 100%;
  height: 30px;
}

/* Global Styles End */
/* First Section Start */
.first_section {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 40px;
}

.image_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.search_box {
  position: relative;
  z-index: 2;
  background: rgba(0, 35, 82, 0.85);
  padding: 20px 30px;
  border-radius: 10px;
  width: 90vw;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search_box input,
.search_box select {
  flex: 1 1 150px;
  min-width: 140px;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.search_box button {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 12px 25px;
  border-radius: 5px;
  border: none;
  background-color: gold;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search_box button:hover {
  background-color: darkorange;
}

.search_box input:focus,
.search_box select:focus,
.search_box button:focus {
  outline: 3px solid gold;
  outline-offset: 2px;
}

/* First Section End */
/* Scroll Down */
.scroll_down {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* Scroll Down */
#site-header {
  width: 100%;
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Լոգոն ձախում, մենյուն մեջտեղում, դրոշակները աջում */
}

/* Լոգոյի Block */
.logo_part a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo {
  height: 38px;
  /* Լոգոյի բարձրությունը */
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* Մենյուի Block (Մեջտեղում) */
.middle_part {
  display: flex;
  align-items: center;
  gap: 32px;
  /* Կոճակների հեռավորությունը */
}

.middle_part .item {
  text-decoration: none;
  color: #222222;
  font-size: 20px;
  font-weight: 700;
  transition: color 0.2s ease;
}

/* Ակտիվ կամ Hover դեղին գույնը */
.middle_part .item:hover,
.middle_part .item.active {
  color: #ffcc00;
}

/* Դրոշակներ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag {
  width: 25px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag:hover {
  transform: scale(1.15);
}

/* Responsiveness */
@media (max-width: 992px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  .middle_part {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Featured Second Section Start */
.featured_section {
  max-width: 1600px;
  margin: 60px auto;
  padding: 0 20px;
}

.featured_section h2 {
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Listing Cards */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 15px;
  padding-top: 30px;
}

.card img {
  width: 100%;
  height: 250px;
  /* set consistent height */
  object-fit: cover;
  /* keep aspect ratio but crop if needed */
  border-radius: 8px;
}

.property-img {
  width: 100% !important;
  height: 100% !important;
}

.card .price {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-weight: bold;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  top: -20px;
}

.card h3 {
  margin: 10px 0 4px;
}

.card p {
  margin: 0;
  color: #555;
}

.card .details {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  justify-content: space-around;
  margin: 8px 0;
}

.card button {
  margin-top: 8px;
  padding: 8px 15px;
  background: #001f4d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.card button:hover {
  background: #004aad;
}

.load {
  padding: 10px 50px;
  background: #001f4d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-bottom: 30px;
}

.load:hover {
  background: #004aad;
}

/* List Your Property Section */
.list-property {
  background: linear-gradient(to right, #001f54, #003580);
  color: white;
  text-align: center;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.list-content {
  max-width: 600px;
}

.list-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.list-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.list-btn {
  background-color: gold;
  color: #000;
  padding: 5px 30px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.list-btn:hover {
  background-color: darkorange;
}

/* CARDS PART */
.home-info-cards {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
  padding: 0 20px;

}


.home-info-card {

  background: white;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;

}


.home-info-card:hover {

  transform: translateY(-5px);

}


.home-info-card .icon {

  font-size: 40px;
  margin-bottom: 15px;

}


.home-info-card h3 {

  margin-bottom: 10px;
  font-size: 20px;

}


.home-info-card p {

  color: #666;
  line-height: 1.6;
  font-size: 15px;

}



@media(max-width:900px) {

  .home-info-cards {

    grid-template-columns: repeat(2, 1fr);

  }

}


@media(max-width:600px) {

  .home-info-cards {

    grid-template-columns: 1fr;

  }

}

/* About and Contact side by side */
.info_section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding-top: 30px;
}

.about p {
  margin: 10px 0;
  color: #444;
  line-height: 1.5;
}

.about ul {
  margin-top: 15px;
  list-style: none;
  padding: 0;
}

.about li {
  margin: 8px 0;
  font-weight: 500;
}

/* Contact */
.contact p {
  margin: 8px 0;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.contact input,
.contact textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.contact button {
  padding: 10px;
  background: #001f4d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact button:hover {
  background: #004aad;
}

/* Featured Second Section End */
/* Start List Request */
.list-property-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  box-sizing: border-box;
}

.list-property-form input,
.list-property-form select,
.list-property-form textarea {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

.list-property-form textarea {
  flex: 1 1 100%;
  resize: vertical;
}

.list-property-form button {
  flex: 1 1 100%;
  padding: 12px;
  font-size: 1.1rem;
}

.list-property-form input:focus,
.list-property-form select:focus,
.list-property-form textarea:focus {
  outline: 3px solid gold;
  border-color: gold;
}

.image-upload {
  width: 100%;
  margin: 15px 0;
}

.upload-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #0a84ff;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: .3s;
}

.upload-btn:hover {
  background: #006fe6;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.preview-item {
  position: relative;
  width: 120px;
  height: 120px;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ddd;
}

.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #ff3b30;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  font-weight: bold;
}

.remove-image:hover {
  background: #d60000;
}

/* Other Start*/
/* --- Subsections (Sale/Rent tabs) --- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.subnav-btn {
  border: 1px solid #001f4d;
  background: #fff;
  color: #001f4d;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.subnav-btn.active,
.subnav-btn:hover {
  background: #001f4d;
  color: #fff;
}

/* Slider-ի փոխարեն քարտերի սթայլեր */
/* ===========================
   Property Categories
=========================== */

.property-categories {
  width: 100%;
  max-width: 1500px;
  margin: 70px auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;

  padding: 0 20px;
  box-sizing: border-box;
}

.category-card {

  background: #fff;
  border-radius: 20px;

  min-height: 330px;

  padding: 45px 35px;

  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);

  transition: .3s;
}

.category-card:hover {

  transform: translateY(-10px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);

}

.category-icon {

  font-size: 70px;

  margin-bottom: 20px;

}

.category-card h3 {

  font-size: 30px;

  color: #1d3557;

  margin-bottom: 30px;

}

.category-buttons {

  display: flex;

  justify-content: center;

  gap: 18px;

  margin-top: auto;

}

.category-buttons a {

  background: #1d3557;

  color: white;

  text-decoration: none;

  padding: 15px 30px;

  border-radius: 10px;

  font-size: 18px;

  font-weight: 600;

  transition: .3s;

}

.category-buttons a:hover {

  background: #d62828;

}


/* Tablet */

@media(max-width:1200px) {

  .property-categories {

    grid-template-columns: repeat(2, 1fr);

  }

}


/* Mobile */

@media(max-width:768px) {

  .property-categories {

    grid-template-columns: 1fr;

  }

  .category-card {

    min-height: auto;

    padding: 35px 25px;

  }

  .category-icon {

    font-size: 60px;

  }

  .category-card h3 {

    font-size: 26px;

  }

  .category-buttons {

    flex-direction: column;

  }

  .category-buttons a {

    width: 100%;

    box-sizing: border-box;

  }

}

/* --- Simple slider controls (keeps your cards) --- */
.slider {
  position: relative;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slider-track .card {
  scroll-snap-align: start;
}

.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  /* hidden on touch-first; JS shows for desktops */
}

.slider-btn.prev {
  left: -10px;
}

.slider-btn.next {
  right: -10px;
}




/* Admin Login Design Start*/

.admin-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  flex-direction: column;
  margin-top: 100px;
}

.admin-form h2 {
  padding-bottom: 10px;
}

.admin-form input {
  max-width: 200px;
  width: 100%;
  height: 30px;
  border-radius: 5px;
  border: 1px solid black;
  font-size: 16px;
  padding-left: 5px;
}

.admin-form button {
  max-width: 200px;
  width: 100%;
  padding: 12px 25px;
  border-radius: 5px;
  border: none;
  background-color: gold;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-form button:hover {
  background-color: darkorange;
}

.admin-chat-link a {

  text-decoration: none;
  color: #1976d2;
  font-weight: bold;

}


.chat-count {

  background: red;
  color: white;

  border-radius: 50%;

  padding: 3px 8px;

  font-size: 13px;

  margin-left: 5px;

  display: none;

}

/* Admin Login Design End */
/* =====================================
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================
   ADMIN LOGIN FORM
===================================== */
.admin-form {
  width: 100%;
  max-width: 400px;
  margin: 80px auto;
  padding: 30px 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  font-size: 26px;
}

.admin-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
}

.admin-form input:focus {
  border-color: #0078d7;
}

.admin-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #0078d7;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.admin-form button:hover {
  background: #005bb5;
}

/* =====================================
   ADMIN HEADER
===================================== */
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.admin-title h1 {
  font-size: 28px;
  color: #2c3e50;
}

.admin-title p {
  margin-top: 4px;
  color: #7f8c8d;
  font-size: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-chat-link a,
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s, transform 0.1s;
}

.admin-chat-link a {
  background: #0d6efd;
}

.admin-chat-link a:hover {
  background: #0b5ed7;
}

.logout-btn {
  background: #dc3545;
}

.logout-btn:hover {
  background: #bb2d3b;
}

.chat-count {
  display: none;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 4px;
  text-align: center;
  border-radius: 50%;
  background: #ff3b30;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* =====================================
   EDIT FORM & GALLERY
===================================== */
.edit-container {
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.admin-edit-form label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin: 10px 0 20px 0;
}

.image-gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.save-btn {
  background: #198754;
  width: 100%;
}

.save-btn:hover {
  background: #157347;
}

/* =====================================
   ADMIN TABLE (DESKTOP)
===================================== */
.table-wrapper {
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

#adminTable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

#adminTable th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 700;
  padding: 14px;
  border-bottom: 2px solid #dee2e6;
}

#adminTable td {
  padding: 12px 14px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
  font-size: 14px;
}

#adminTable tbody tr:hover {
  background-color: #f8f9fa;
}

.admin-property-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* Actions Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-buttons a {
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.btn-approve {
  background: #198754;
}

.btn-approve:hover {
  background: #146c43;
}

.btn-edit {
  background: #ffc107;
  color: #000 !important;
}

.btn-edit:hover {
  background: #e0a800;
}

.btn-delete {
  background: #dc3545;
}

.btn-delete:hover {
  background: #b02a37;
}

/* Messages & Load More */
.success-message {
  text-align: center;
  background: #d1e7dd;
  color: #0f5132;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.load-more-container {
  text-align: center;
  margin: 25px 0;
}

.load-more-btn {
  padding: 12px 30px;
  border: none;
  background: #0078d7;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.3s;
}

.load-more-btn:hover {
  background: #005bb5;
}

/* =====================================
   RESPONSIVE (MOBILE & TABLET CARD VIEW)
===================================== */
@media (max-width: 768px) {
  .admin-top {
    flex-direction: column;
    text-align: center;
  }

  .admin-actions {
    width: 100%;
    justify-content: center;
  }

  .admin-chat-link,
  .admin-btn {
    width: 100%;
  }

  /* Transform Table to Cards */
  .table-wrapper {
    background: transparent;
    box-shadow: none;
  }

  #adminTable,
  #adminTable thead,
  #adminTable tbody,
  #adminTable th,
  #adminTable td,
  #adminTable tr {
    display: block;
  }

  #adminTable thead {
    display: none;
    /* Hide header row */
  }

  #adminTable tr {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
  }

  #adminTable td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
  }

  #adminTable td:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  /* Show data-label as left side title */
  #adminTable td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
    text-align: left;
    padding-right: 10px;
  }

  .admin-property-image {
    width: 70px;
    height: 50px;
  }

  .action-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}

.add-btn {
  background: #198754;
}

.add-btn:hover {
  background: #146c43;
}

/* ===== Edit Form Styling ===== */
.admin-edit-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-edit-form h2 {
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.admin-edit-form label {
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  flex-direction: column;
}

.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 6px;
}

.admin-edit-form button {
  padding: 12px;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.admin-edit-form button:hover {
  background: #005bb5;
}

/* Property Styles */
.prop-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-main {
  width: 100%;
  /* responsive width */
  height: auto;
  /* keep aspect ratio */
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}


.prop-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  cursor: pointer;
  line-height: 38px;
  text-align: center;
}

.prop-arrow.prev {
  left: 8px;
}

.prop-arrow.next {
  right: 8px;
}


.property-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.property-main {
  flex: 1 1 60%;
  min-width: 300px;
}

.similar-sidebar {
  flex: 1 1 30%;
  min-width: 250px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.similar-sidebar h3 {
  margin-top: 0;
  font-size: 1.2em;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.similar-card {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  color: #333;
  margin-top: 1rem;
  background: white;
  border-radius: 0.7rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.similar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.similar-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.similar-card .sim-info {
  flex: 1;
}

.similar-card h4 {
  font-size: 0.95em;
  margin: 0;
}

.similar-card .price {
  font-size: 0.85em;
  color: #555;
}


/* Success message consistency */
.success-message {
  background: #e6f8e6;
  color: #2e7d32;
  border: 1px solid #b2dfdb;
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 20px;
}


/* Footer Start */
.info_section {
  background: #f9f9f9;
  padding: 50px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.footer-container p,
.footer-container li {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.footer-container ul {
  list-style: none;
  padding: 0;
}

.footer-container ul li {
  margin: 5px 0;
}

.footer-container a {
  color: #0a1a45;
  text-decoration: none;
}

.footer-container form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-container input,
.footer-container textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

.footer-container button {
  background: #001f54;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.footer-container button:hover {
  background: #003080;
}

/* Footer End */

/* Show arrows on large screens */
@media (min-width: 1025px) {
  .slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .first_section {
    height: 70vh;
    align-items: center;
    padding-bottom: 0;
  }

  .search_box {
    width: 60vw;
    padding: 12px 15px;
  }

  .search_box input,
  .search_box select,
  .search_box button {
    font-size: 0.85rem;
  }

  .middle_part {
    max-width: 90vw;
    gap: 15px;
  }

  .item {
    font-size: 0.95rem;
    padding: 4px 8px;
  }

  svg {
    width: 35px;
    height: 35px;
  }

  .list-property-form input,
  .list-property-form select {
    flex: 1 1 45%;
  }
}


/* Active item in header (optional) */
.item.active {
  color: gold;
}

/* Other End*/
/* Small tablets and large phones */
@media (max-width: 768px) {
  .first_section {
    height: auto;
    padding: 20px 0;
    align-items: center;
    justify-content: center;
  }

  /* Make search box flexible and full width */
  .search_box {
    width: 90%;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: rgba(0, 35, 82, 0.85);
    border-radius: 10px;
  }

  /* Make all input fields and button full width */
  .search_box input,
  .search_box select,
  .search_box button {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    box-sizing: border-box;
  }

  .middle_part {
    max-width: 95%;
    gap: 10px;
  }

  .item {
    font-size: 0.9rem;
    padding: 4px 6px;
  }

  svg {
    width: 28px;
    height: 28px;
  }

  .featured_section h2 {
    text-align: center;
    font-size: 1.6rem;
  }

  .info_section {
    text-align: center;
  }

  .list-content h2 {
    font-size: 1.5rem;
  }

  .list-content p {
    font-size: 1rem;
  }

  .list-property-form input,
  .list-property-form select,
  .list-property-form textarea {
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-container form {
    align-items: center;
    width: 100%;
  }
}


/* Phones */
@media (max-width: 480px) {
  .first_section {
    height: auto;
    padding: 20px 0;
    align-items: center;
    justify-content: center;
  }

  .search_box {
    width: 95%;
    max-width: 400px;
    padding: 10px;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    background: rgba(0, 35, 82, 0.85);
    border-radius: 10px;
  }

  .search_box input,
  .search_box select,
  .search_box button {
    width: 100%;
    min-width: unset;
    font-size: 1rem;
    padding: 12px;
    border-radius: 5px;
    font-size: 12px;
  }

  .search_box button {
    margin-top: 5px;
    background-color: gold;
    font-weight: bold;
    cursor: pointer;
  }

  header {
    padding: 10px 15px;
  }

  .middle_part {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .item {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  svg {
    width: 28px;
    height: 28px;
    margin-top: 5px;
  }

  .list-property {
    padding: 40px 15px;
  }

  .list-content h2 {
    font-size: 1.4rem;
  }

  .list-content p {
    font-size: 0.95rem;
  }

  .list-property-form {
    gap: 10px;
    padding: 10px;
  }

  .list-property-form input,
  .list-property-form select,
  .list-property-form textarea {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
  }

  .list-property-form button {
    font-size: 1rem;
    padding: 12px;
  }
}