/* property_details.css */
<style>
		body {
    		font-family: 'Questrial', sans-serif;
			letter-spacing: .45px;
			color: #6c757d;
		}

		#propertyCarousel {
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            position: relative;
            left: 0;
            right: 0;
			border-bottom: 2px solid #B31C1A;  /* motif Luxe red */
  			/*padding-bottom: 8px;*/
  			margin-bottom: 20px;

        }
        .carousel-item img {
            height: 500px;
            width: 100%;
            object-fit: cover;
        }

        /* Ken Burns Animations */
        .ken-burns-1 { animation: kenBurnsEffect1 10s infinite; }
        .ken-burns-2 { animation: kenBurnsEffect2 10s infinite; }
        .ken-burns-3 { animation: kenBurnsEffect3 10s infinite; }
        
        @keyframes kenBurnsEffect1 {
            0% { transform: scale(1) translate(0%, 0%); }
            50% { transform: scale(1.03) translate(5%, 5%); }
            100% { transform: scale(1) translate(0%, 0%); }
        }
        @keyframes kenBurnsEffect2 {
            0% { transform: scale(1) translate(0%, 0%); }
            50% { transform: scale(1.03) translate(-5%, 5%); }
            100% { transform: scale(1) translate(0%, 0%); }
        }
        @keyframes kenBurnsEffect3 {
            0% { transform: scale(1) translate(0%, 0%); }
            50% { transform: scale(1.03) translate(5%, -5%); }
            100% { transform: scale(1) translate(0%, 0%); }
        }

.shadow-sm {
  border: 3px solid #1771b1;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
 !important;
}
  .agent-rail-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    position: sticky;
    top: 90px;
    background: white;
    width: 100%;
    max-width: 100%;
    /* margin-left: auto; */
    margin-right: 0;
    z-index: 10;
}
		.ms-card {
			margin-left: 10px;
			margin-right: 10px;
		}

@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 95%;
  }
}

/* Property Info */
.property-info {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    /*margin-top: 1rem;*/
    border-top: 0.0625rem solid #e5e5e5;
    border-bottom: 0.0625rem solid #e5e5e5;
    font-size: 1.25rem;
    line-height: 2.0;
    padding: 0.5rem 0;
    width: 100%;
    font-family: 'Questrial', sans-serif;
}

.property-info > div {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
    border-right: 1px solid #e5e5e5;
}

.property-info > div:last-child {
    border-right: none;
}


.property-info .value {
	color: #262a2f;
    font-weight: 600;
    display: inline;
    font-size: 1.25rem;
}

.property-info .label {
    display: inline;
    margin-left: 0.25rem;
    font-size: 1.25rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .property-info {
        margin-top: 1.25rem;
    }
    .property-info .value,
    .property-info .label {
        display: block;
        text-align: center;
        margin-left: 0;
        line-height: 1.2;
    }

    .property-info .value {
        margin-bottom: 0.25rem;
        font-size: 1.25rem;
    }

    .property-info .label {
        font-size: 0.95rem;
    }
}
.public-remarks {
	word-wrap: break-word;
	color: #6c6969;
	font-family: Avenir;
 	font-size: 1rem;
	line-height: 150%;
	margin: 0;
	display: inline;
	overflow: hidden;
	text-overflow: ellipsis;
}

        .share-button {
            margin-left: 10px;
        }

        /* Map Styles */
        #singlemap {
            width: 100%;
            height: 500px;
			border: 1px solid #ccc;
			border-radius: 10px;
			box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 
            inset 0 -2px 5px rgba(255, 255, 255, 0.4);
			background-color: #f5f5f5;
       }

        /* Modal Fixes */
        .modal {
            z-index: 1060;
            display: none;
        }
        .modal.show {
            display: block;
        }
        .modal-backdrop {
            z-index: 1050;
        }

        /* Responsive Adjustments */
        @media (max-width: 991px) {
            #propertyCarousel {
                width: 100%;
                margin-left: 0;
            }
            .agent-rail-container {
                position: static;
                margin-top: 2rem;
            }
            .agent-block {
                display: none;
            }
        }
        @media (max-width: 767px) {
            .carousel-item img {
                height: 300px;
            }
        }

#date-buttons {
    white-space: nowrap;
    scroll-behavior: smooth;
}

.overflow-auto {
  overflow: hidden !important;
}

#date-buttons {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
#date-buttons::-webkit-scrollbar {
    display: none;
}

.date-btn {
    width: 72px;
    height: 90px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-right: 8px;
    text-align: center;
    text-transform: uppercase;
    font-family: sans-serif;
    padding: 6px 4px;
    flex-shrink: 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
	row-gap: .25rem;
}

.date-btn span {
    display: block;
    width: 100%;
}

.date-btn .month {
    font-size: 0.75rem;
    font-weight: 500;
}
.date-btn .daynum {
    font-size: 1.25rem;
    font-weight: 500;
}
.date-btn .weekday {
    font-size: 0.75rem;
    font-weight: 500;
}

.date-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Prev / Next Arrows */
.btn-nav {
    width: 36px;
    height: 90px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-nav:disabled {
    opacity: 0.3;
}

#time-buttons {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
}

#time-buttons::-webkit-scrollbar {
    display: none;
}

.time-btn {
    width: 88px;
    height: 50px;
    margin-right: 8px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.time-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.btn-time-nav {
    width: 36px;
    height: 50px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-time-nav:disabled {
    opacity: 0.3;
}
	.features-highlights {
		font-size: 1.125rem;
		color: #6c757d;
 	}
	.features {
		font-size: 1.5rem;
		color: #6c757d;
		background-color: #ededed;
 	}
svg {
  color: #6c757d;
}
.close {
  font-size: 2.0rem !important;
  font-weight: 200 !important;
  line-height: 1 !important;
  color: #6c757d !important;
  text-shadow: 0 1px 0 #fff !important;
}

/* EXACT Button Styles from search_grid.php */
.btn-agent-action {
    flex: 1;
    border-radius: 6px;
    font-size: 16px;
    padding: 10px 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
}

.btn-agent-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.btn-danger.btn-agent-action {
    background-color: #dc3545;
}

.btn-primary.btn-agent-action {
    background-color: #007bff;
}

.button-group-50 {
    width: 25%;
}

.agent-rail-img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #7b7777;
}

.collapsed-text {
  max-height: 140px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s ease;
}

.collapsed-text.expanded {
  max-height: 1000px;
}

.show-more-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: #b12704; /* motif Luxe red accent */
  text-decoration: none;
  font-family: 'Questrial', 'Avenir', sans-serif;
}

.show-more-link:hover {
  text-decoration: underline;
}

.property-description h5 {
  margin-bottom: 0.5rem;
  letter-spacing: 0.2px;
}
.collapsed-text {
  max-height: 140px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s ease;
  padding-top: 4px;          /* prevents the top line from being cropped */
  line-height: 1.55;         /* keeps vertical rhythm consistent */
}

.property-overview {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid #dee2e6;
  padding-left: 1rem;
  padding-right: 1rem;
  font-family: 'Questrial', sans-serif !important;
}

.section-heading {
  color: #6c6969;
  font-weight: 400;
  letter-spacing: 0.4px;
  font-family: 'Questrial', sans-serif !important;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem 3rem;
  font-family: 'Questrial', sans-serif !important;  color: #2a2a2a;
  font-size: 1rem;
  line-height: 1.6;
}

.overview-grid p {
  margin-bottom: 0.4rem;
  font-family: 'Questrial', sans-serif !important;
}

.overview-grid strong {
  color: #111;
  font-weight: 600;
  margin-right: 4px;
  font-family: 'Questrial', sans-serif !important;
}

.price-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  font-family: 'Questrial', sans-serif !important;
}

.price-line span {
  font-weight: 400;
  margin-left: 6px;
  color: #111;
  font-family: 'Questrial', sans-serif !important;
}

@media (min-width: 992px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
  }
}

.carousel-overlay {
  position: absolute;
  bottom: 40px;
  left: 60px;
  z-index: 10;
  color: #fff;
  font-family: 'Questrial', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 18px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  max-width: 80%;
}

.overlay-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.overlay-text.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .carousel-overlay {
    left: 20px;
    bottom: 20px;
    font-size: 1.1rem;
    padding: 8px 14px;
  }
}

/* Responsive Headings for Small Devices */
@media (max-width: 767.98px) {
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.625rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    h4 {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Optional: Adjust for medium devices if needed */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
}

.accordion-container {
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 20px rgba(0,0,0,0.14);
    margin-bottom: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #f0f0f0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.5rem 2rem;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header.active {
    background: #f8f9fa;
    border-left: 4px solid #B31C1A;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Questrial', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.accordion-icon {
    font-size: 1.2rem;
    color: #B31C1A;
    width: 24px;
    text-align: center;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    color: #B31C1A !important;
}

.accordion-arrow.rotated {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-content.show {
    padding: 2rem;
    max-height: 1000px;
}

/* Responsive accordion */
@media (max-width: 768px) {
    .accordion-header {
        padding: 1.25rem 1.5rem;
    }
    
    .accordion-content {
        padding: 0 1.5rem;
    }
    
    .accordion-content.show {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
  .property-info {
    gap: 0.75rem !important;
  }
  .property-info .fw-bold {
    font-size: 0.9rem !important;
  }
  .property-info .text-muted.small {
    font-size: 0.7rem !important;
  }
}

/* Center the entire recent sales section */
.recent-sales-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

/* Table styling */
.recent-sales-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.92rem;
    table-layout: fixed;
}

/* Column widths */
.recent-sales-table th:nth-child(1),
.recent-sales-table td:nth-child(1) {
    width: 44%;
    text-align: left;
}

.recent-sales-table th:nth-child(2),
.recent-sales-table td:nth-child(2),
.recent-sales-table th:nth-child(3),
.recent-sales-table td:nth-child(3),
.recent-sales-table th:nth-child(4),
.recent-sales-table td:nth-child(4) {
    width: 18%;
    text-align: right;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .recent-sales-table {
        font-size: 0.82rem;
    }
    .recent-sales-table th,
    .recent-sales-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }
    .recent-sales-table th:nth-child(1),
    .recent-sales-table td:nth-child(1) {
        width: 40%;
    }
}

</style>
