/* Property Details Page Styles */

/* Hero Image Overlay */
.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(128, 128, 128, 0.5); /* Darker gray with 50% opacity */
    backdrop-filter: blur(5px);
    padding: 0.75rem 1.5rem; /* Reduced padding */
    z-index: 10; /* Above the image and link */
    pointer-events: none; /* Allows clicks to pass through to the lightbox link */
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    transition: all 0.3s ease;
}

.hero-image-description {
    color: #f8f9fa;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Ensure the link and image are below the overlay but still clickable */
.hero-image-container > a {
    position: relative;
    z-index: 1;
    display: block;
}

/* Location Section - Uses brand background system from landing.css */

.location-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.location-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.location-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(var(--card-bg-rgb), 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.15);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.highlight-item h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.location-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 400px;
}

.location-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.location-image:hover img {
    transform: scale(1.05);
}

.location-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.1) 0%,
        rgba(var(--secondary-color-rgb), 0.1) 50%,
        rgba(var(--accent-color-rgb), 0.05) 100%
    );
    pointer-events: none;
    transition: all 0.3s ease;
}

.location-image:hover::after {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.15) 0%,
        rgba(var(--secondary-color-rgb), 0.15) 50%,
        rgba(var(--accent-color-rgb), 0.1) 100%
    );
}

/* Attraction Cards */
.attraction-card {
    background: rgba(var(--card-bg-rgb), 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.attraction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.attraction-card:hover::before {
    left: 100%;
}

.attraction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.attraction-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--secondary-color-rgb), 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(var(--primary-color-rgb), 0.2);
    transition: all 0.3s ease;
}

.attraction-card:hover .attraction-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.attraction-card:hover .attraction-icon i {
    color: white !important;
}

.attraction-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.attraction-name {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.attraction-distance {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.attraction-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Local Services */
.local-services-card {
    background: rgba(var(--card-bg-rgb), 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item {
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-3px);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
}

.service-item h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

.service-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Reviews Section - Uses brand background system from landing.css */

.reviews-section .section-title {
    color: var(--text-light);
}

.reviews-section .section-subtitle {
    color: var(--text-muted);
}

/* Review Statistics */
.review-stats-card {
    background: rgba(var(--card-bg-rgb), 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.overall-rating {
    margin-bottom: 2.5rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.rating-text {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-row .category {
    flex: 0 0 120px;
    color: var(--text-light);
    font-weight: 500;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.rating-row .score {
    flex: 0 0 40px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

/* Individual Review Cards */
.review-card {
    background: rgba(var(--card-bg-rgb), 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.review-card:hover::before {
    left: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.reviewer-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid rgba(var(--primary-color-rgb), 0.3);
    transition: all 0.3s ease;
}

.review-card:hover .reviewer-avatar img {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.reviewer-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.review-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.review-content {
    position: relative;
    z-index: 2;
}

.review-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
}

.review-content p::before {
    content: '"';
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 0.25rem;
}

.review-content p::after {
    content: '"';
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 0.25rem;
}

/* Load More Button */
.reviews-section .btn-outline-primary {
    border: 2px solid rgba(var(--primary-color-rgb), 0.5);
    color: var(--primary-color);
    background: rgba(var(--card-bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reviews-section .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.reviews-section .btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--primary-color-rgb), 0.4);
}

.reviews-section .btn-outline-primary:hover::before {
    left: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .location-highlights {
        margin-top: 2rem;
    }
    
    .highlight-item {
        padding: 1.25rem;
    }
    
    .attraction-card {
        margin-bottom: 2rem;
    }
    
    .rating-row .category {
        flex: 0 0 100px;
        font-size: 0.9rem;
    }
    
    .rating-row .score {
        flex: 0 0 35px;
    }
}

@media (max-width: 768px) {
    .location-highlights {
        gap: 1rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .highlight-item i {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    
    .local-services-card {
        padding: 2rem 1rem;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .service-item i {
        font-size: 1.5rem;
    }
    
    .review-stats-card {
        padding: 2rem 1.5rem;
    }
    
    .rating-number {
        font-size: 3rem;
    }
    
    .rating-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .rating-row .category {
        flex: none;
    }
    
    .rating-row .score {
        flex: none;
        text-align: center;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .reviewer-avatar {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .attraction-icon {
        width: 60px;
        height: 60px;
    }
    
    .attraction-icon i {
        font-size: 1.5rem;
    }
    
    .review-content p {
        font-size: 0.9rem;
    }
}

/* Alojamento Local Tooltip */
.al-tooltip {
    cursor: help;
    position: relative;
    transition: transform 0.2s ease;
}

.al-tooltip:hover {
    transform: translateY(-2px);
}

.al-tooltip::after {
    content: "In Portugal, Alojamento Local (AL) refers to short-term rental accommodation — that is, properties legally registered to host tourists or temporary guests. It's similar to Airbnb rentals or holiday homes in other countries but regulated under Portuguese law.";
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background: rgba(26, 26, 46, 0.98);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    white-space: normal;
    width: 340px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.al-tooltip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 20px;
    border: 8px solid transparent;
    border-top-color: rgba(26, 26, 46, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.al-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

.al-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}
