/* Modern Property Details Page Styles */

.property-details-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    margin-top: 80px; /* Reduced margin for better spacing */
    position: relative;
    z-index: 1;
    padding-top: 30px; /* Increased padding for better spacing */
    padding-bottom: 50px;
}

/* Hero Section */
.property-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.property-info-sidebar {
    position: sticky;
    top: 120px; /* Account for header height */
    height: fit-content;
    z-index: 10; /* Ensure it stays above content but below header */
}

.property-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 2rem;
    border: 1px solid rgba(30, 60, 114, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.property-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.property-header-info {
    margin-bottom: 1.5rem;
}

.property-header-info .property-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-header-info .property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.property-header-info .property-location i {
    color: #1e3c72;
}

/* Property Slider */
.property-slider-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.property-slider {
    position: relative;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1.05) contrast(1.1);
}

.slide.active img {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.15);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
}

.slide-caption p {
    margin: 0;
    font-size: 1rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    border: 2px solid rgba(30, 60, 114, 0.2);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    color: #1e3c72;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
    border-color: #1e3c72;
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Slider Thumbnails */
.slider-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #1e3c72;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Quick Info */
.property-quick-info {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.property-header {
    margin-bottom: 1.5rem;
}

.property-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.property-location i {
    color: #1e3c72;
}

.property-price-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.price-main {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-amount.ask-price {
    color: #28a745;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-amount.ask-price i {
    animation: pointRight 2s ease-in-out infinite;
}

@keyframes pointRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.price-period {
    font-size: 1rem;
    color: #666;
    margin-left: 0.5rem;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #ddd;
    font-size: 1rem;
}

.stars i.filled {
    color: #ffd700;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* Quick Contact Bar */
.quick-contact-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 0.7rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-btn.primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.contact-btn.primary:hover {
    background: linear-gradient(135deg, #0f2a5c 0%, #1e3c72 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
}

.contact-btn.secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #1e3c72;
    border: 2px solid rgba(30, 60, 114, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-btn.secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #1e3c72;
}

.contact-btn i {
    font-size: 1rem;
}

.contact-btn span {
    font-weight: 500;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(30, 60, 114, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.agent-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.agent-details {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: 600;
    color: #1e3c72;
}

.agent-role {
    font-size: 0.9rem;
    color: #666;
}

/* Tabs Section */
.property-details-tabs {
    margin-top: 2rem;
}

.tabs-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #1e3c72;
}

.tab-btn.active {
    background: #fff;
    color: #1e3c72;
    border-bottom-color: #1e3c72;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    gap: 2rem;
}

.features-section,
.description-section,
.property-features-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.features-section h3,
.description-section h3,
.property-features-section h3 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-item i {
    color: #1e3c72;
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 600;
    color: #333;
}

.description-content {
    line-height: 1.6;
    color: #555;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1e3c72;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.8rem;
}

/* Details Tab */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.details-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.details-section h3 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #1e3c72;
}

/* Location Tab */
.location-content h3 {
    margin: 0 0 1.5rem 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info {
    display: grid;
    gap: 2rem;
}

.address-section h4,
.map-section h4,
.nearby-section h4 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.amenity-item i {
    font-size: 1.5rem;
    color: #1e3c72;
}

.amenity-item span {
    font-weight: 600;
    color: #333;
}

/* Reviews Tab */
.reviews-content h3 {
    margin: 0 0 1.5rem 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
}

.rating-count {
    color: #666;
    font-size: 0.9rem;
}

.add-review-btn {
    padding: 0.75rem 1.5rem;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-review-btn:hover {
    background: #0f2a5c;
    transform: translateY(-2px);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: #1e3c72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    color: #1e3c72;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-rating i {
    color: #ddd;
    font-size: 0.9rem;
}

.review-rating i.filled {
    color: #ffd700;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-content p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-reviews i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-reviews h4 {
    margin: 0 0 0.5rem 0;
    color: #1e3c72;
}

/* FAQ Tab */
.faq-content h3 {
    margin: 0 0 1.5rem 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.1rem;
}

.faq-question i {
    color: #1e3c72;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Related Properties */
.related-properties {
    padding: 3rem 0;
    background: #f8f9fa;
}

.related-properties h2 {
    margin: 0 0 2rem 0;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Use the same grid layout as properties.php */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image {
    transform: scale(1.02);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 80px;
    text-align: center;
}

.property-badge.featured {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1e3c72;
    left: 0.75rem;
    border: 1px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.property-badge.featured:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.property-badge.featured i {
    font-size: 0.6rem;
    color: #1e3c72;
}

.property-badge.featured span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1e3c72;
}

.property-actions-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.property-card:hover .property-actions-overlay {
    opacity: 1;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.action-btn:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: scale(1.1);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.9) !important;
    color: white !important;
}

.whatsapp-btn:hover {
    background: #25d366 !important;
    transform: scale(1.1);
}

.property-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 280px;
}

.property-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem; /* Fixed height for 2 lines */
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.property-card:hover .property-content h3 {
    color: #1e3c72;
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 3rem;
    flex-shrink: 0;
    overflow: visible;
}

.content-spacer {
    flex-grow: 1;
    min-height: 1rem;
}

.property-posted-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.posted-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.posted-info i {
    font-size: 0.75rem;
    color: #999;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffd700;
    font-weight: 600;
}

.property-rating i {
    font-size: 0.8rem;
    color: #ffd700;
}

.property-rating span {
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    font-size: 0.75rem;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.property-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: auto;
    height: 2.5rem;
    flex-shrink: 0;
    position: relative;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.price-amount.ask-price {
    color: #28a745;
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-amount.ask-price i {
    font-size: 1rem;
    color: #28a745;
    animation: pointRight 2s ease-in-out infinite;
}

@keyframes pointRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.price-period {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.price-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.price-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: #f8f9fa;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

.price-action-btn:hover {
    background: #1e3c72;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.price-action-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.price-action-btn:hover i {
    transform: translateX(2px);
}

/* Special styling for favorite button */
.price-action-btn:has(.fa-heart) {
    background: #f8f9fa;
    color: #1e3c72;
}

.price-action-btn:has(.fa-heart):hover {
    background: #e74c3c;
    color: white;
}

.price-action-btn:has(.fa-heart.fas) {
    background: #e74c3c;
    color: white;
}

/* Tooltip styling */
.price-action-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

/* Responsive Design for Related Properties */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .property-info-sidebar {
        top: 100px; /* Slightly less space for tablet */
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .property-card {
        min-height: 380px;
    }
    
    .property-content {
        padding: 1rem;
        min-height: 220px;
    }
    
    .property-content h3 {
        font-size: 1rem;
        min-height: 2.2rem;
    }
    
    .property-features {
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-item {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-card {
        min-height: 420px;
        max-width: 100%;
    }
    
    .property-content {
        padding: 1.2rem;
        min-height: 280px;
    }
    
    .property-content h3 {
        font-size: 1.1rem;
        min-height: 2.4rem;
        line-height: 1.3;
    }
    
    .property-features {
        gap: 0.6rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .feature-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .property-price {
        height: 3rem;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .price-action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .property-posted-time {
        font-size: 0.75rem;
        margin-top: 0.3rem;
        padding-top: 0.3rem;
    }
    
    .property-rating {
        font-size: 0.7rem;
    }
    
    .property-rating i {
        font-size: 0.7rem;
    }
    
    .property-rating span {
        font-size: 0.7rem;
    }
    
    .property-badge.featured {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
        left: 0.5rem;
        top: 0.5rem;
        max-width: 70px;
    }
    
    .property-price {
        height: 2.5rem;
        position: relative;
        margin-top: auto;
    }
    
    .price-info {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }
    
    .price-actions {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        flex-shrink: 0;
    }
    
    .price-action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .properties-grid {
        gap: 0.8rem;
    }
    
    .property-card {
        min-height: 400px;
    }
    
    .property-content {
        padding: 1rem;
        min-height: 260px;
    }
    
    .property-content h3 {
        font-size: 1rem;
        min-height: 2.2rem;
    }
    
    .property-features {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-item {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .property-price {
        height: 2.8rem;
    }
    
    .price-amount {
        font-size: 1.1rem;
    }
    
    .price-action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-height: 32px;
    }
}

/* Property Statistics Section */
.property-stats-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.property-stats-section h4 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-item i {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Agent Contact Section */
.agent-contact-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.agent-contact-section h4 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.agent-contact-btn.whatsapp-btn {
    background: #25d366;
    color: white;
}

.agent-contact-btn.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.agent-contact-btn.call-btn {
    background: #1e3c72;
    color: white;
}

.agent-contact-btn.call-btn:hover {
    background: #0f2a5c;
    transform: translateY(-2px);
}

/* Property Features Section */
.property-features-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.property-features-section h4 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-check i {
    color: #28a745;
    font-size: 0.9rem;
}

.feature-check span {
    font-size: 0.9rem;
    color: #333;
}


/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.quick-actions-section h4 {
    margin: 0 0 1rem 0;
    color: #1e3c72;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #1e3c72;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-action-btn:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.quick-action-btn.favorited {
    background: #e74c3c;
    color: white;
}

.quick-action-btn.favorited:hover {
    background: #c0392b;
}

.quick-action-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    .stat-item {
        padding: 0.25rem;
    }
    
    .stat-item i {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .quick-action-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .quick-action-btn i {
        font-size: 1rem;
    }
    
    .quick-action-btn span {
        font-size: 0.7rem;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1e3c72;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #1e3c72;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.rating-input {
    margin-top: 0.5rem;
}

.stars-input {
    display: flex;
    gap: 0.5rem;
}

.stars-input i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.stars-input i:hover,
.stars-input i.filled {
    color: #ffd700;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1e3c72;
    color: white;
}

.btn-primary:hover {
    background: #0f2a5c;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Share Modal */
.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.share-btn {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-btn i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-details-page {
        margin-top: 120px; /* More margin on mobile for header */
        padding-top: 10px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-info-sidebar {
        position: static;
        order: 2;
        top: auto;
        z-index: auto;
    }
    
    .main-content {
        order: 1;
    }
    
    .tabs-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-slider {
        height: 300px;
    }
    
    .property-quick-info {
        position: static;
        padding: 1.5rem;
    }
    
    .property-title {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-btn {
        flex: none;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .property-hero {
        padding: 1rem 0;
    }
    
    .hero-content {
        gap: 0.5rem;
    }
    
    .property-quick-info {
        padding: 1rem;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .features-section,
    .description-section,
    .property-features-section,
    .details-section {
        padding: 1rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}
