
/* ---------------- Root Variables ---------------- */
:root {
  --primary: #a7d5f1;
  --primary-dark: #7bbce3;
  --accent: #031ae6;
  --background: #f9fbfd;
  --text: #031ae6;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ---------------- Base ---------------- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Condensed', sans-serif;
  background-color: var(--background);
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

/* ---------------- Header ---------------- */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary);
  padding: 10px 20px;
  flex-wrap: wrap;
}

.header-logo {
  height: 80px;
  width: auto;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.header-container i {
  font-size: 2rem;
  color: var(--accent);
}

.header-container h1 {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text);
  margin: 0;
}

/* ---------------- Navbar ---------------- */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  background-color: var(--accent);
}

.navbar a {
  color: var(--white);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  background-color: var(--primary);
  color: var(--text);
}

/* ---------------- Search Bar ---------------- */
.search-bar-container {
  max-width: 1200px;
  margin: 20px auto;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.search-bar-container input,
.search-bar-container select {
  padding: 10px 14px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 160px;
  flex: 1 1 180px;
}

.search-bar-container button {
  background-color: var(--primary);
  color: var(--text);
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-bar-container button:hover {
  background-color: var(--primary-dark);
}

/* ---------------- Property Card ---------------- */
.mini-property-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

.mini-property-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease;
}

.mini-property-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-info {
  padding: 15px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-tags {
  font-size: 0.9rem;
  color: #555;
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.card-tags li {
  margin-bottom: 4px;
}

.card-price {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: bold;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background-color: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.site-footer .footer-links a {
  color: var(--white);
  margin: 0 10px;
  font-weight: 500;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .search-bar-container {
    flex-direction: column;
  }

  .search-bar-container input,
  .search-bar-container select,
  .search-bar-container button {
    width: 100%;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .mini-property-card {
    width: 90%;
  }
}



/* ---------------- Gallery ---------------- */
.gallery-container {
  position: relative;
  max-width: 700px;
  height: auto;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 16px var(--shadow);
  background: var(--white);
}





.gallery-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
  pointer-events: none;
}

.gallery-buttons button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  pointer-events: all;
}

.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px;
}

.gallery-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border 0.2s ease;
}

.gallery-thumbnails img.active {
  border-color: var(--primary);
  box-shadow: 0 0 6px var(--shadow);
}



/* ---------------- Detail Page Layout ---------------- */
.house-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  justify-content: center;
  align-items: flex-start;
}

/* Gallery styling */
.gallery-container {
  flex: 1 1 600px;
  max-width: 650px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px var(--shadow);
  background: var(--white);
  position: relative;
  padding-bottom: 20px;
}





.gallery-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none;
}

.gallery-buttons button {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  pointer-events: all;
}

.gallery-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0 10px;
}

.gallery-thumbnails img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border 0.2s ease;
}

.gallery-thumbnails img.active {
  border-color: var(--primary);
  box-shadow: 0 0 4px var(--shadow);
}

/* Info Section */
.house-info {
  flex: 1 1 450px;
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 18px var(--shadow);
}

.house-info h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 20px;
}

.house-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.house-info-table th,
.house-info-table td {
  padding: 10px;
  font-size: 0.95rem;
  text-align: left;
}

.house-info-table th {
  background: #f0f4f8;
  color: var(--text);
  width: 40%;
}

.house-info-table td {
  background: #fbfcfe;
}

/* Description List */
.property-features {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.property-features li {
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
}

/* Contact button */
.contact-agent-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #128c7e;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  text-decoration: none;
}

.contact-agent-btn:hover {
  background-color: #0e6e63;
}

/* Responsive */
@media (max-width: 768px) {
  .house-detail-container {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
  }

  

  .gallery-thumbnails img {
    width: 60px;
    height: 45px;
  }

  .house-info {
    width: 100%;
    box-sizing: border-box;
  }
}


.gallery-container {
  overflow: visible; /* ALLOW vertical scroll */
}



body {
  overflow-x: hidden;
  overflow-y: auto;
}
.gallery-slider {
  display: flex;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
}

.gallery-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}


.gallery-slider {
  display: flex;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
  width: 100%; /* ADD THIS LINE */
}

.gallery-slider {
  display: flex;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
  width: 100%;           /* slider visible area */
}

.gallery-slider img {
  flex: 0 0 100%;         /* each image takes full slider width */
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-slider {
  display: flex;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
  width: 100%;
}


@media (max-width: 768px) {
  .search-bar-container {
    flex-direction: column;
    padding: 10px;
    gap: 6px;
  }

  .search-bar-container input,
  .search-bar-container select,
  .search-bar-container button {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.85rem;
    height: 36px;
    min-width: 0;
    box-sizing: border-box;
  }

  .search-bar-container button {
    font-weight: 600;
  }
}



@media (max-width: 768px) {
  .search-bar-container {
    flex-direction: column;
    padding: 8px;
    gap: 4px;
  }

  .search-bar-container input,
  .search-bar-container select,
  .search-bar-container button {
    width: 100%;
    padding: 4px 8px;
    font-size: 0.8rem;
    height: 32px;
    min-width: 0;
    box-sizing: border-box;
    line-height: 1.2;
  }

  .search-bar-container button {
    font-weight: 600;
    height: 36px;
  }
}



@media (max-width: 768px) {
  .search-bar-container input,
  .search-bar-container select {
    padding: 2px 6px;
    font-size: 0.75rem;
    height: 28px;
    line-height: 1;
  }
}

/* --- Modern Search Bar Styling for Mobile & Desktop --- */
.search-bar-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background: #f8fbfd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.search-row input,
.search-row select,
.search-row button {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  box-sizing: border-box;
}

.search-row button {
  background-color: #007BFF;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-row button:hover {
  background-color: #0056b3;
}

.search-bar-container select:focus,
.search-bar-container input:focus,
.search-bar-container button:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
  }

  .search-row input,
  .search-row select,
  .search-row button {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .search-bar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
  }

  .search-row {
    display: contents;
  }

  .search-bar-container button:hover {
    background-color: #0056b3;
  }
}


.advertise-content {
  padding-left:25px;
  padding-right:25px;
}

.navbar a {
    background: transparent;
    transition: all 0.25s ease-in-out;
}

.navbar a:hover {
    background-color: #ffffff;
    color: var(--accent);
    transform: scale(1.05);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
}

main {
  flex: 1;
}

.contact-part{
  padding-left:20px;
}