/* Luxury Property Details Styling */
:root {
    --primary: #1a1a1a;
    --secondary: #c9a87d;
    --accent: #d4af37;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Base Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    /*line-height: 1.6;*/
    background: var(--background);
  }
  
/* Gallery Styling */
.gallery-container {
    position: relative;
    height: 80vh;
    margin-top: 80px;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Keep the gallery to the right of the image */
    gap: 1rem; /* Add a gap between the image gallery and the thumbnail gallery */
    width: 100%; /* Ensure it takes up the full container width */
    box-sizing: border-box; /* Account for padding and border in width calculation */
  }
  
  /* Main gallery image styling */
  .main-gallery {
    height: 100%;
    width: 75%; /* Reduced width to make space for the thumbnail gallery */
    image-rendering: auto;
    object-fit: cover;
  }
  
  .main-gallery .swiper-slide {
    position: relative;
    overflow: hidden;
  }
  
  .main-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
  }
  
  .main-gallery .swiper-slide:hover img {
    transform: scale(1.05);
  }
  
  /* Thumbnail gallery styling */
  .gallery-thumbs {
    display: flex;
    flex-direction: column; /* Make thumbnails appear vertically */
    width: 20%; /* Adjusted to take up 20% of the container width */
    height: 100%; /* Ensure it takes up the full height of the container */
    padding: 1rem 0.5rem; /* Padding adjustment */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2); /* Optional shadow for better separation */
    overflow-y: auto; /* Allow scrolling if thumbnails overflow vertically */
    max-height: 100%; /* Prevent overflowing vertically */
  }
  
  .gallery-thumbs .swiper-slide {
    width: 100%;
    height: auto; /* Dynamic height for each thumbnail */
    opacity: 0.7;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem; /* Space between each thumbnail */
    border: 2px solid #e0e0e0; /* Border for each thumbnail */
    padding: 2px; /* Padding inside each thumbnail border */
    background-color: #fff; /* White background for better contrast */
  }
  
  .gallery-thumbs .swiper-slide:hover {
    opacity: 1; /* Make it fully visible on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Add a shadow effect on hover */
    transform: scale(1.05); /* Scale up slightly on hover */
  }
  
  .gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--secondary); /* Highlight the active thumbnail */
  }
  
  .gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px; /* Slightly round the edges of each thumbnail */
  }
  
  /* Navigation button styling */
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background: var(--secondary);
  }
  
  /* Property Container */
  .property-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
  }
  
  
  /* Main Content */
  .property-main {
    display: grid;
    gap: 3rem;
  }
  
  .property-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
  }
  
  .property-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .property-location {
    font-family: Georgia, "Times New Roman", Times, serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .property-price {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 600;
  }
  
  /* Property Highlights */
  .property-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
  }
  
  .highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .highlight-item i {
    font-size: 1.5rem;
    color: var(--secondary);
  }
  
  /* Features Grid */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
    transition: var(--transition);
  }
  
  .feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .feature-item i {
    color: var(--secondary);
  }
  
  /* Location Map */
  .property-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  
  /* Similar Properties */
  .similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .similar-card {
    text-decoration: none;
    color: inherit;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }
  
  .similar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .similar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .similar-info {
    padding: 1.5rem;
  }
  
  .similar-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
  }
  
  .similar-price {
    color: var(--secondary);
    font-weight: 600;
  }
  
  /* Sidebar Styling */
  .property-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
  }
  
  .agent-card,
  .calculator-card,
  .inquiry-card {
    background: var(--background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
  }
  
 
  
  .agent-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
  }
  
  .agent-contact {
    display: grid;
    gap: 1rem;
  }
  
  .agent-phone,
  .agent-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
  }
  
  .agent-phone {
    background: var(--secondary);
    color: white;
  }
  
  .agent-email {
    background: var(--background-alt);
    color: var(--primary);
  }
  
  /* Form Styling */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(201, 168, 125, 0.2);
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-calculate {
    background: var(--primary);
    color: white;
  }
  
  .btn-inquiry {
    background: var(--secondary);
    color: white;
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  /* Calculation Results */
  .calculation-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }
  
  .result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }

  /*dark mode*/
  body.dark-mode .gallery-thumbs {
  /*background: #1e1e1e;*/
    background: var(--gray-800);
}
body.dark-mode .agent-card,
body.dark-mode .calculator-card,
body.dark-mode .inquiry-card,
body.dark-mode .similar-card{
  background: var(--gray-800);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: var(--gray-700);
  color: var(--gray-50);
  border: 1px solid var(--gray-600);
}

body.dark-mode .property-title,
body.dark-mode .about-property-section h3,
body.dark-mode .property-description h2,
body.dark-mode .nearby-places h3,
body.dark-mode .similar-properties h2,
body.dark-mode .similar-info h3,
body.dark-mode .inquiry-card h3,
body.dark-mode .calculator-card h3,
body.dark-mode .agent-card h3 {
  /*color: var(--gold-dark) !important;*/
  /*background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%);*/
  /*-webkit-background-clip: text;*/
  /*-webkit-text-fill-color: transparent;*/
  color: #CB9760 !important;
}

body.dark-mode .about-property-section,
body.dark-mode .property-description {
  color: #ffffff !important;
}

body.dark-mode .btn-submit,
body.dark-mode .back-to-admin {
  background: var(--primary);
  color: white;
}

body.dark-mode .agent-email {
  background: azure;
}
body.dark-mode #distanceUnit {
  background: inherit;
  color: white;
}
body.dark-mode #distanceUnit option{
  color: black;
}

/*body.dark-mode .property-header {*/
/*  border-bottom: 1px solid grey;*/
/*}*/

body.dark-mode .about-property-section,
body.dark-mode .nearby-places,
body.dark-mode .property-highlights {
  background-color: var(--gray-700);
  box-shadow: 0 0 12px rgba(34, 102, 194, 0.4);
  border-radius: 6px;
}


  /* Responsive Design */
  @media (max-width: 1200px) {
    .property-container {
      grid-template-columns: 1fr;
    }
  
    .property-sidebar {
      position: static;
      max-width: 600px;
      margin: 0 auto;
    }
  }

@media (max-width: 991px){
  .main-gallery{
    width: 100%;
  }
  .gallery-container {
    padding: 0 1rem;
    flex-direction: column;
  }
  .gallery-thumbs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    height: 210px;
  }
  .gallery-thumbs .swiper-slide{
    width: 140px;
    height: 100% !important;
  }
  .swiper-vertical>.swiper-wrapper{
    flex-direction: row;
    padding: 0 5px;
  }
  .property-sidebar{
    width: 100%;
    max-width: 100%;
  }
}
  
  @media (max-width: 768px) {
    .gallery-container {
      height: 60vh;
    }
  
    .gallery-thumbs {
      /*display: none;*/
    }
  
    .property-highlights {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .similar-grid {
      grid-template-columns: 1fr;
    }
  
    .property-container {
      padding: 2rem 1rem;
    }
  }

  @media (max-width: 576px) {
    .property-sidebar {
      margin: 0;
    }
  }
  
  @media (max-width: 480px) {
    .property-title {
      font-size: 2rem;
    }
  
    .property-price {
      font-size: 1.5rem;
    }
  
    /*.property-highlights {*/
    /*  grid-template-columns: 1fr;*/
    /*}*/
  }
  
    
  .nearby-places {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--background-alt);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
  }
  
  
  #nearby-list {
    list-style: none;
    padding: 0;
  }
  
  #nearby-list li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border-left: 4px solid var(--secondary);
    border-radius: 6px;
  }
  
  .nearby-places h3 {
    margin-bottom: 8px;
  }
  
  .nearby-places select {
    transition: border 0.3s;
  }
  
  .nearby-places select:focus {
    border-color: #2266c2;
    outline: none;
  }
  
  .about-property-section {
    margin-top: 20px;
    padding: 2rem;
    background-color: #f7f7f7;
    border-radius: 6px;
  }

.about-property-list div{
  max-width: 100% !important;
}
  .about-property-section h3 {
    font-size: 1.5em;
    color: #2266c2;
    margin-bottom: 10px;
  }
  
  .about-property-list ul {
    list-style-type: none;
    padding: 0;
  }
  
  .about-property-list li {
    font-size: 1.1em;
    color: #333;
    margin: 6px 0;
  }
  
  .about-property-list li::before {
    content: '✔';
    color: #f7d488;
    margin-right: 8px;
  }