.main {
    flex: none;
}

.details-section {
    background-color: #f7fafc;
}

.details-content-grid {
    display: grid;
    gap: 1.5rem;
    padding-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.feature-content {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: .5rem;
}

.main-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: .5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 0 1.5rem 1rem;
}

.thumbnail-row .thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.thumbnail.active {
    border-color: #2196f3; /* Highlight color */
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#lightbox img {
    max-width: fit-content;
    height: 70vh;
}

#lightbox.hidden {
    display: none;
}

#closeBtn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

#prevBtn, #nextBtn {
    position: absolute;
    height: 50%;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

#prevBtn { 
    left: 30px; 
}

#nextBtn { 
    right: 30px;
}

.text-content .text-section span {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0 1.5rem 1rem;
    margin-bottom: .5rem;
}

.text-content p {
    font-size: .875rem;
    color: #4a5568;
    padding: 0 1.5rem 1rem;
    flex-grow: 1;
}

.text-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #4a5568;
    padding: 0 1.5rem 1rem;
}

.land-features .features-division {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem 1rem;
    color: #4a5568;
}

.add-details nav ul {
    font-size: .875rem;
    color: #4a5568;
    padding: 0 1.5rem 1rem;
    flex-grow: 1;
}

.contact-form {
    display: grid;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    padding: 1.5rem;
    background-color: #ffffff
}

.form-group {
    display: grid;
    gap: .5rem;
}

.form-group label {
    font-size: .875rem;
    font-weight: 500;
    color: #1a202c;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    font-size: 1rem;
    color: #1a202c;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, .2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.whatsapp-button {
    background-color: #28a745;
    width: 100%;
    margin-top: 1.5rem;
    font-size: .875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.whatsapp-button:hover {
    background-color: #218838;
}

.whatsapp-button i {
    font-size: 1.25rem;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 24px;
  background-color: #28a745; /* Green */
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


@media (min-width: 1024px) {
    .details-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-content img {
        width: 100%;
        height: 400px;
    }

    .text-content h2 {
        font-size: 1.875rem;
    }

    .add-details nav ul{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0 2rem 1.5rem;
        list-style: disc;
        font-size: 1rem;
    }

    .add-details nav ul li {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: .5rem;
    }

}
