/* Project Details Styles */

/* Project Header Info (Moved from Hero) */
.pd-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.pd-header-left {
    flex: 1;
}

.pd-badge-dark {
    display: inline-block;
    background: var(--primary-color, #cda274);
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.pd-title-dark {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color, #0a192f);
}

.pd-location-dark {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
}

.pd-location-dark i {
    color: var(--primary-color, #cda274);
    margin-right: 8px;
}

.pd-header-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.pd-price-wrap-dark {
    display: flex;
    flex-direction: column;
}

.pd-price-dark {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color, #0a192f);
    line-height: 1;
}

.pd-price-label-dark {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Download Brochure Blinking Button */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(205, 162, 116, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(205, 162, 116, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(205, 162, 116, 0); }
}

.btn-download-brochure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color, #cda274);
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.btn-download-brochure::before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 50px;
}

.btn-download-brochure:hover::before {
    opacity: 1;
}

.btn-download-brochure:hover {
    color: #fff;
}

.btn-download-brochure::after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color, #cda274);
    left: 0;
    top: 0;
    border-radius: 50px;
}

.pd-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 50px;
}

.pd-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pd-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.4) 50%, rgba(10, 25, 47, 0.1) 100%);
    z-index: 2;
}

.pd-hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 50px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.pd-hero-left {
    flex: 1;
}

.pd-hero-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.pd-badge {
    display: inline-block;
    background: var(--primary-color, #cda274);
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.pd-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.pd-location {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.pd-location i {
    color: var(--primary-color, #cda274);
    margin-right: 8px;
}

.pd-price-wrap {
    display: flex;
    flex-direction: column;
}

.pd-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.pd-price-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Main Layout */
.pd-main-section {
    padding-bottom: 80px;
}

.pd-layout {
    display: flex;
    gap: 40px;
}

.pd-content {
    flex: 1;
}

.pd-sidebar {
    width: 350px;
}

/* Quick Info */
.pd-quick-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.qi-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qi-item i {
    font-size: 1.8rem;
    color: var(--primary-color, #cda274);
    margin-bottom: 10px;
}

.qi-item span {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qi-item strong {
    font-size: 1.1rem;
    color: var(--secondary-color, #0a192f);
    font-weight: 600;
}

/* Sections */
.pd-section {
    margin-bottom: 50px;
}

.pd-section-title {
    font-size: 2rem;
    color: var(--secondary-color, #0a192f);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.pd-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color, #cda274);
}

.pd-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Amenities Grid */
.pd-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.am-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.am-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.am-item i {
    font-size: 1.5rem;
    color: var(--primary-color, #cda274);
    width: 30px;
    text-align: center;
}

.am-item span {
    font-weight: 500;
    color: var(--secondary-color, #0a192f);
}

/* Gallery Grid */
.pd-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.gallery-item.large {
    grid-column: 1 / -1;
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Sidebar Contact Form */
.sticky {
    position: sticky;
    top: 100px;
}

.pd-contact-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-title {
    font-size: 1.5rem;
    color: var(--secondary-color, #0a192f);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pd-form .form-group {
    margin-bottom: 20px;
}

.pd-form .form-control {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.pd-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #cda274);
    background: #fff;
}

.pd-submit-btn {
    width: 100%;
    background: var(--primary-color, #cda274);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pd-submit-btn:hover {
    background: #b89165;
}

.pd-contact-direct {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.pd-contact-direct span {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.pd-contact-direct a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--secondary-color, #0a192f);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pd-contact-direct a:hover {
    color: var(--primary-color, #cda274);
}

/* Animated Call Icon */
.animated-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color, #cda274);
    color: white;
    border-radius: 50%;
    position: relative;
    animation: ringPhonePulse 2s infinite;
}

.animated-call-icon i {
    font-size: 1.1rem;
    transform: scaleX(-1); /* Flips the icon horizontally so it points to the correct side */
}

@keyframes ringPhonePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(205, 162, 116, 0.7); }
    10% { transform: scale(1.1) rotate(15deg); }
    20% { transform: scale(1.1) rotate(-10deg); }
    30% { transform: scale(1.1) rotate(15deg); }
    40% { transform: scale(1.1) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(0deg); box-shadow: 0 0 0 10px rgba(205, 162, 116, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(205, 162, 116, 0); }
}

.pd-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Responsive */
@media (max-width: 991px) {
    .pd-layout {
        flex-direction: column;
    }
    
    .pd-sidebar {
        width: 100%;
    }
    
    .pd-quick-info {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .pd-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .pd-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .pd-title {
        font-size: 2.2rem;
    }
    
    .pd-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        height: 250px;
    }
    
    .gallery-item {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .pd-quick-info {
        grid-template-columns: 1fr;
    }
    
    .pd-amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .pd-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: 1;
    }
}
