:root {
  --background-color: linear-gradient(
    to bottom left,
    #b6f3ff,
    #fff2d2,
    #ffca59
  );
  --text-color: #111528;
  --subtext-color: #555;
  --header-color: #081935;
  --background-icon: white;
  --line-color: #000000;
}

.darkmode {
  --background-color: linear-gradient(to bottom left, #002d36, #310026);
  --text-color: #ffffff;
  --subtext-color: #c7c7c7;
  --background-icon: black;
  --line-color: #ffdd77;
}

.villa-hero h1,
.penthouse-hero h1,
.immeuble-hero h1,
.appartement-hero h1 {
  color: var(--text-color);
}

.villa-location,
.penthouse-location,
.immeuble-location,
.appartement-location {
  color: var(--subtext-color);
}

.villa-price,
.penthouse-price,
.immeuble-price,
.appartement-price {
  color: var(--text-color);
}

.villa-card,
.penthouse-card,
.immeuble-card,
.appartement-card {
  background: var(--background-icon);
}

.villa-meta span,
.penthouse-meta span,
.immeuble-meta span,
.appartement-meta span {
  background: var(--line-color);
  color: var(--background-icon);
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Judson", serif;
  background: var(--background-color);
  background-size: cover;
  color: var(--text-color);
}

.board {
  background: var(--background-color);
}

nav {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
}

input {
  font-family: "Judson", serif;
  font-style: normal;
  font-size: 1.5em;
}

input::placeholder {
  font-weight: bold;
  font-size: 1.4em;
  opacity: 0.5;
}

ul {
  list-style-type: none;
}

footer {
  background-color: #081935;
  font-size: 20px;
}

.judson-regular {
  font-family: "Judson", serif;
  font-weight: 400;
}

.judson-bold {
  font-family: "Judson", serif;
  font-weight: 700;
}

.judson-regular-italic {
  font-family: "Judson", serif;
  font-style: italic;
}

.navbar a {
  color: rgb(240, 234, 234);
  text-decoration: none;
  padding: 20px;
}

.navbar a:hover {
  color: var(--text-color);
}

.navbar {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-top: 20px;
  padding: 8px 20px;
  max-width: 1000px;
  font-size: 16px;
}

.logo_img {
  width: 12rem;
  height: 7rem;
  padding-top: 1em;
  padding-right: 2em;
}

.logo {
  display: flex;
  align-items: center;
}

#details {
  display: flex;
  flex-direction: row;
  max-width: 1260px;
  margin: 20px auto;
  background-color: var(--background-icon);
  border-radius: 15.44px;
  height: 120px;
  padding: 20px;
  color: var(--text-color);
}

.Card {
  display: flex;
  gap: 30px;
  align-items: stretch;
  padding: 30px;
  max-width: 1400px;
  margin: auto;
  flex-wrap: nowrap;
}

.ImageContainer {
  flex: 2;
  max-width: 853px;
  height: 472px;
  overflow: hidden;
  border-radius: 10px;
}

.ImageBien {
  width: 100%;
  height: 100%;
}

.ImageBien img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.Maison {
  width: 100%;
  height: auto;
  border-radius: 15.44px;
  object-fit: cover;
}

.Description {
  flex: 1;
  min-width: 280px;
  max-width: 35%;
  background-color: var(--background-icon);
  border-radius: 15.44px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-color);
}

.location {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.txtgris {
  color: var(--subtext-color); 
  font-size: 2px;
  margin: 0;
}

.stats {
  display: flex;
  gap: 30px;
}

.stats h1 {
  font-size: 2rem;
  margin: 0;
  color: var(--text-color);
}

.stats h4 {
  font-size: 0.95rem;
  color: var(--subtext-color);
  margin: 0;
}

.cash {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cash h1 {
  font-size: 1.8rem;
  white-space: nowrap;
  color: var(--text-color);
}

.cash .btn-desc {
  flex: unset !important;
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 8px 18px;
}

.Grey {
  display: flex;
  background-color: #eaeaea;
  border-radius: 15.44px;
  padding: 16px 20px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.Profil {
  display: flex;
  align-items: center;
  gap: 12px;
}

.Profil img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.Profil p {
  margin: 0;
  color: var(--subtext-color);
  font-size: 1rem;
  line-height: 1.3;
}

.Info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.Info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

#Reserve {
  align-self: center;
  width: 80%;
  flex: unset !important;
  height: unset !important;
  padding: 14px 0;
  font-size: 1rem;
}

.pill-filter {
  flex: 1;
  height: 70px;
  padding: 0 25px;
  border-color: #ddd !important;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.text-muted {
  font-size: 0.85rem;
  color: var(--subtext-color);
}

#points {
  font-size: 15px;
}

.btn {
  flex: 1;
  height: 70px;
}

.map-container {
  width: 1260px;
  margin: 20px auto;
}

#map {
  height: 300px;
  border-radius: 15px;
}

.loan {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1260px;
  margin: 20px auto;
  background-color: var(--background-icon);
  border-radius: 15.44px;
  height: 460px;
  padding: 20px;
  color: var(--text-color);
}

.calculation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: rgb(196, 196, 196);
  border-radius: 15.44px;
  min-height: 295px;
  height: auto;
}

.amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #b6f3ff;
  border-radius: 15.44px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--text-color);
}

.cash h1,
.room h1,
.piece h1,
.surface h1,
.location h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sim-input {
  border-bottom: 2px solid #b0a080 !important;
  outline: none;
  box-shadow: none !important;
  color: var(--text-color);
}

.sim-input:focus {
  border-bottom-color: var(--line-color) !important;
}

.agent-card {
  min-width: 180px;
}

.property-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.sim-input::placeholder {
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.4;
}

.btn-sim-calc,
.btn-sim-reset,
.btn-contact,
.btn-agent-cta,
.btn-plus,
.villa-fav {
  flex: unset !important;
  height: unset !important;
  cursor: pointer;
  border-radius: 50px;
  font-family: "Judson", serif;
  font-size: 1rem;
}

.btn-sim-calc {
  background-color: #b6f3ff;
  border: none;
  padding: 10px 28px;
}
.btn-sim-calc:hover {
  background-color: #8de8f8;
}

.btn-sim-reset {
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 10px 28px;
  color: var(--text-color);
}
.btn-sim-reset:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-contact {
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 6px 20px;
  font-size: 0.9rem;
  color: var(--text-color);
}
.btn-contact:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-agent-cta {
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 10px 24px;
  margin-top: 10px;
  color: var(--text-color);
}
.btn-agent-cta:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-plus {
  border: 1px solid var(--line-color);
  background: transparent;
  padding: 10px 28px;
  color: var(--text-color);
}
.btn-plus:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.agent-card {
  min-width: 180px;
}

.suggestions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.villa-card {
  background: var(--background-icon);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  list-style: none;
}
.villa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.villa-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.villa-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.villa-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px !important;
  border-radius: 50% !important;
  border: none;
  background: var(--background-icon);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.villa-fav:hover {
  transform: scale(1.1);
}

.villa-card-content {
  padding: 16px 20px 20px;
}

.villa-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.villa-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.villa-location {
  background: var(--background-icon);
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--subtext-color);
  text-align: right;
  line-height: 1.3;
}
.villa-location span::before {
  content: "📍 ";
}

.villa-meta {
  display: flex;
  gap: 20px;
  color: var(--subtext-color);
  font-size: 0.9rem;
}

.appartement-page {
  padding-bottom: 4rem;
}

.appartement-hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.appartement-hero h1 {
  font-family: "Judson", serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.05em;
}

.appartement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.appartement-card {
  background: var(--background-icon);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.appartement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(8, 25, 53, 0.15);
}

.appartement-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.appartement-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.appartement-card:hover .appartement-card-image img {
  transform: scale(1.05);
}

.appartement-card-content {
  padding: 1.2rem 1.4rem 1.4rem;
}

.appartement-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.appartement-price {
  font-family: "Judson", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.appartement-location {
  text-align: right;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.appartement-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.appartement-meta span {
  background: var(--line-color);
  color: #fff;
  font-family: "Judson", serif;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
}

@media screen and (max-width: 768px) {
  .appartement-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .appartement-hero h1 {
    font-size: 2rem;
  }

  .appartement-card-image {
    height: 180px;
  }
}

a {
  text-decoration: none;
}

.Container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  width: 95%;
  margin-top: 30px;
  margin-left: 20px;
}

.day {
  background-color: rgb(196, 246, 255);
  border-radius: 15px;
  text-align: center;
}

.slot {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin: 10px;
  background-color: #feffee;
  border-radius: 15px;
}

.time {
  margin: 10px;
}

.today {
  display: flex;
  flex-direction: column;
  margin: 10px;
}

.crenau {
  padding-top: 20px;
  padding-left: 20px;
}

.hour {
  display: flex;
  flex-direction: column;
  height: 483.74px;
  width: 220.59px;
  justify-content: center;
  align-items: center;
}

.hour button {
  flex: 1;
  width: 80%;
  height: 29px;
  margin: 3px 0;
  margin-top: 10px;
}

.titre {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.taille {
  max-width: 200px;
  height: 50px;
  margin-right: 20px;
}
