/* Property Detail Page - Redesigned to match reference layout */

.detail-section {
padding:20px 0 3rem;
background: var(--gray-50);
}


.property-title-bar {display: flex;justify-content: space-between;align-items: flex-start;gap: 1rem;margin-bottom: 2rem;}
.title-section h1 {font-size: 1.75rem;font-weight: 700;color: var(--navy-primary);line-height: 1.3;margin-bottom: 0.75rem;}
.property-meta-bar {display: flex;flex-wrap: wrap;gap: 1.5rem;}
.meta-item {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.875rem;
color: var(--gray-600);
}

.sticky-sidebar .contact-form{width:100%;}

.action-buttons {
display: flex;
gap: 0.5rem;
}

.action-btn-icon {
width: 2.75rem;
height: 2.75rem;
display: flex;
align-items: center;
justify-content: center;
background: var(--white);
border: 1px solid var(--gray-300);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s;
}

.action-btn-icon:hover {
background: var(--gray-100);
border-color: var(--gold-primary);
}

.action-btn-icon svg {
width: 18px;
height: 18px;
stroke: var(--navy-primary);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.wishlist-toggle.active {
background: #fef2f2;
border-color: #ef4444;
}

.wishlist-toggle.active svg {
stroke: #ef4444;
fill: #ef4444;
}

/* Detail Grid Layout */
.detail-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}

/* Gallery Container */
.gallery-container {
background: var(--white);
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.main-gallery-image {
position: relative;
width: 100%;
height: 400px;
border-radius: 12px;
overflow: hidden;
margin-bottom: 1rem;

}

.main-gallery-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.gallery-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(11, 27, 43, 0.3);
opacity: 0;
transition: opacity 0.3s;
}

.main-gallery-image:hover .gallery-overlay {
opacity: 1;
}

.play-btn {
width: 4rem;
height: 4rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(245, 158, 11, 0.95);
border: none;
border-radius: 9999px;
cursor: pointer;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
transition: all 0.3s;
}

.play-btn:hover {
transform: scale(1.1);
}

.play-btn svg {
width: 1.5rem;
height: 1.5rem;
fill: var(--white);
margin-left: 0.25rem;
}

.gallery-thumbnails {
display: grid;
gap: 0.75rem;
}

.thumbnail-item {
aspect-ratio: 4/3;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.3s;
}

.thumbnail-item:hover {
border-color: var(--gold-primary);
}

.thumbnail-item.active {
border-color: var(--gold-primary);
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.thumbnail-item img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Overview Section */
.overview-section {
background: var(--white);
border-radius: 16px;
padding: 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.overview-section h2,
.about-section h2,
.amenities-section h2,
.video-section h2 {
font-size: 1.5rem;
font-weight: 700;
color: var(--navy-primary);
margin-bottom: 1.5rem;
padding-bottom: 0.75rem;
border-bottom: 2px solid var(--gray-200);
}

.overview-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}

.overview-item {
display: flex;
align-items: flex-start;
gap: 1rem;
}

.overview-icon {
width: 2.5rem;
height: 2.5rem;
min-width: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
border-radius: 8px;
}

.overview-icon svg {
width: 1.25rem;
height: 1.25rem;
stroke: var(--gold-primary);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.overview-label {
font-size: 0.75rem;
color: var(--gray-600);
margin-bottom: 0.25rem;
}

.overview-value {
font-size: 0.875rem;
font-weight: 600;
color: var(--navy-primary);
}

/* About Section */
.about-section {
background: var(--white);
border-radius: 16px;
padding: 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.about-content {
font-size: 0.9375rem;
color: var(--gray-700);
line-height: 1.7;
}

.about-content p {
margin-bottom: 1rem;
}

.about-content p:last-child {
margin-bottom: 0;
}

.about-content ul {
list-style: disc;
padding-left: 1.5rem;
margin: 1rem 0;
}

.about-content li {
margin-bottom: 0.5rem;
}

/* Amenities Section */
.amenities-section {
background: var(--white);
border-radius: 16px;
padding: 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.amenities-categories {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}

.amenity-category h3 {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.125rem;
font-weight: 700;
color: var(--navy-primary);
margin-bottom: 1rem;
}

.amenity-category h3 svg {
width: 20px;
height: 20px;
stroke: var(--gold-primary);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.amenity-category ul {
list-style: none;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}

.amenity-category li {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: var(--gray-700);
padding: 0.5rem 0;
}

.amenity-category li::before {
content: '';
width: 6px;
height: 6px;
border-radius: 9999px;
background: var(--gold-primary);
flex-shrink: 0;
}

/* Video Section */
.video-section {
background: var(--white);
border-radius: 16px;
padding: 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.video-container {
position: relative;
width: 100%;
height: 400px;
border-radius: 12px;
overflow: hidden;
cursor: pointer;
}

.video-container img {
width: 100%;
height: 100%;
object-fit: cover;
}

.video-play-btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 5rem;
height: 5rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(245, 158, 11, 0.95);
border: none;
border-radius: 9999px;
cursor: pointer;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
transition: all 0.3s;
}

.video-play-btn:hover {
transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
width: 2rem;
height: 2rem;
fill: var(--white);
margin-left: 0.25rem;
}

/* Sidebar */
.detail-sidebar {
width: 100%;
}

.sticky-sidebar {
position: sticky;
top: 100px;
}

/* Contact Card */
.contact-card {
background: var(--white);
border-radius: 16px;
padding: 2rem;
margin-bottom: 1.5rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
flex-direction: column;
}

.contact-header h3 {
font-size: 1.25rem;
font-weight: 700;
color: var(--navy-primary);
margin-bottom: 1.5rem;
}

.owner-info {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: var(--gray-50);
border-radius: 12px;
margin-bottom: 1.5rem;
}

.owner-avatar {
width: 3rem;
height: 3rem;
min-width: 3rem;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
border-radius: 9999px;
}

.owner-avatar svg {
width: 1.5rem;
height: 1.5rem;
stroke: var(--white);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.owner-name {
font-size: 1rem;
font-weight: 700;
color: var(--navy-primary);
margin-bottom: 0.125rem;
}

.owner-role {
font-size: 0.75rem;
color: var(--gray-600);
}

/* Contact Form */
.contact-form .form-group {
margin-bottom: 1rem;
}

.form-input,
.form-textarea {
width: 100%;
padding: 0.875rem 1rem;
border: 1px solid var(--gray-300);
border-radius: 8px;
font-size: 0.875rem;
font-family: inherit;
color: var(--navy-primary);
transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
outline: none;
border-color: var(--navy-primary);
}

.form-textarea {
resize: vertical;
}

.submit-btn {
width: 100%;
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
color: var(--white);
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
transition: all 0.3s;
}

.submit-btn:hover {
background: linear-gradient(to right, rgba(245, 158, 11, 0.9), rgba(251, 191, 36, 0.9));
}

.submit-btn svg {
width: 18px;
height: 18px;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

/* Latest Listings Card */
.latest-listings-card {
background: var(--white);
border-radius: 16px;
padding: 1rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.latest-listings-card h3 {
font-size: 1.125rem;
font-weight: 700;
color: var(--navy-primary);
margin-bottom: 1.25rem;
padding-bottom: 0.75rem;
border-bottom: 2px solid var(--gray-200);
}

.latest-listing-item {
display: flex;
gap: 0.875rem;
padding: 1rem 0;
border-bottom: 1px solid var(--gray-200);
}

.latest-listing-item:last-child {
border-bottom: none;
}

.latest-listing-image {
width: 80px;
height: 80px;
min-width: 80px;
border-radius: 8px;
overflow: hidden;
}

.latest-listing-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.latest-listing-info h4 {
font-size: 0.875rem;
font-weight: 600;
color: var(--navy-primary);
margin-bottom: 0.5rem;
line-height: 1.4;
}

.latest-listing-price {
font-size: 0.875rem;
font-weight: 700;
color: var(--gold-primary);
margin-bottom: 0.375rem;
}

.latest-listing-location {
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
color: var(--gray-600);
}

.latest-listing-location svg {
width: 12px;
height: 12px;
stroke: var(--gray-400);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

/* Related Properties Section */
.related-properties {
padding: 4rem 0;
background: var(--white);
}

.section-header-inline {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}

.section-header-inline h2 {
font-size: 2rem;
font-weight: 700;
color: var(--navy-primary);
}

.view-all-link {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--gold-primary);
text-decoration: none;
transition: gap 0.3s;
}

.view-all-link:hover {
gap: 0.75rem;
}

.view-all-link svg {
width: 16px;
height: 16px;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}

.related-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}

/* Related Property Card */
.related-card {
background: var(--white);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
transition: all 0.3s;
}

.related-card:hover {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
transform: translateY(-4px);
}

.related-image {
position: relative;
height: 200px;
overflow: hidden;
}

.related-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}

.related-card:hover .related-image img {
transform: scale(1.05);
}

.related-badge {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.375rem 0.875rem;
background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
color: var(--white);
font-size: 0.75rem;
font-weight: 600;
border-radius: 6px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.related-content {
padding: 1.25rem;
}

.related-content h3 {
font-size: 1rem;
font-weight: 700;
color: var(--navy-primary);
margin-bottom: 0.75rem;
line-height: 1.4;
}

.related-price {
font-size: 1.125rem;
font-weight: 700;
color: var(--gold-primary);
margin-bottom: 0.75rem;
}

.related-location {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.875rem;
color: var(--gray-600);
margin-bottom: 1rem;
}

.related-location svg {width: 14px;height: 14px;stroke: var(--gray-400);stroke-width: 2;stroke-linecap: round;stroke-linejoin: round;fill: none;}
.related-agent {display: flex;align-items: center;gap: 0.5rem;padding-top: 1rem;border-top: 1px solid var(--gray-200);font-size: 0.875rem;color: var(--gray-600);}
.agent-avatar-sm {width: 2rem;height: 2rem;display: flex;align-items: center;justify-content: center;background: var(--gray-100);border-radius: 9999px;}
.agent-avatar-sm svg {width: 1rem;height: 1rem;stroke: var(--gray-600);stroke-width: 2;stroke-linecap: round;stroke-linejoin: round;fill: none;}
/* Responsive Design */
@media (min-width: 768px) {
.main-gallery-image,.video-container {height: 500px;}
.overview-grid {grid-template-columns: repeat(2, 1fr);}
.amenities-categories {grid-template-columns: repeat(2, 1fr);}
.related-grid {grid-template-columns: repeat(2, 1fr);}
}

@media (min-width: 1024px) {
.title-section h1 {font-size: 2rem;}
.detail-grid {grid-template-columns: 1fr 380px;}
.overview-grid {grid-template-columns: repeat(3, 1fr);}
.amenities-categories {grid-template-columns: repeat(3, 1fr);}
.related-grid {grid-template-columns: repeat(3, 1fr);}
}

@media (min-width: 1280px) {
.section-header-inline h2 {font-size: 2.5rem;}
}

@media (max-width:991px) {
.main-gallery-image {display: none;}    
}