/* PROJECT: Praetorium Properties
    STYLE: Luxury Minimalist / High-End Estate
    STRUCTURE: Global -> Navigation -> Sections -> Components -> Media Queries
*/

/* --- Branding & Variables --- */
:root {
    --p-gold: #C7B151;
    --p-dark: #111111;
    --p-white: #ffffff;
    --p-transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    --p-glass: linear-gradient (top,red,yellow);
    --p-purple: rgba(91, 4, 120, 0.832);
}

body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--p-dark); 
    margin: 0; 
    overflow-x: hidden; 
    line-height: 1.6;
}

/* --- Thin Heading Styles --- */
h1, h2, h3, .p-display-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 6px;
}

span, .p-accent-text { 
    font-family: 'Jost', sans-serif; 
}

.p-accent-text {
    color: var(--p-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Navigation --- */
.p-header {
    background: linear-gradient(to top,rgba(46, 36, 70, 0.255),rgba(11, 11, 11, 0.026));
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(12px);
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1050;
    height: 80px; 
    display: flex; 
    align-items: center;
    border-bottom: 1px solid rgba(44, 19, 65, 0.408);
}

.p-logo-img { height: 60px; }

.p-logo-text { 
    color: var(--p-white); 
    font-weight: 700; 
    letter-spacing: 2px; 
    font-size: 1.2rem;
}

.p-logo-text span { 
    color: var(--p-gold); 
    font-weight: 300; 
}

.p-tagline{
    color: var(--p-purple);
    letter-spacing: 2px; 
    font-size: 1.2rem;
    display: block; 
}

.p-nav__link {
    color: var(--p-white) !important; 
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 2px; 
    padding: 10px 15px !important;
    transition: var(--p-transition);
}

.p-nav__link:hover {
    color: var(--p-gold) !important;
}

/* Ensure the active link stands out */
.p-header .navbar-nav .nav-item .p-nav__link.active {
    color: var(--p-gold) !important; /* Forces the Praetorium gold */
    font-weight: 600;
    position: relative;
    opacity: 1 !important;
}

.p-header .navbar-nav .nav-link.active,
.p-header .navbar-nav .show > .nav-link {
    color: var(--p-gold) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Optional: Add a small gold underline to the active link */
.p-header .navbar-nav .nav-item .p-nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px !important;
    left: 10%;
    width: 80%;
    height: 0.5px;
    background-color: var(--p-gold);
    transition: var(--p-transition);
}



/* --- Animated Dropdown --- */
.p-dropdown-glass {
    display: block; 
    visibility: hidden; 
    opacity: 0; 
    transform: translateY(15px);
    transition: var(--p-transition); 
    background-color: rgba(18, 18, 18, 0.95) !important;
    border: 1px solid rgba(199, 177, 81, 0.2); 
    border-radius: 0; 
    padding: 1rem 0;
    top: 100%; 
    position: absolute;
}

.nav-item.dropdown:hover .p-dropdown-glass { 
    visibility: visible; 
    opacity: 1; 
    transform: translateY(0); 
}

.p-dropdown-glass .dropdown-item {
    color: var(--p-white) !important; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}
.dropdown-item.active{
    background-color: #4e484090;
}
.p-dropdown-glass .dropdown-item:hover { 
    background: transparent; 
    color: var(--p-gold) !important; 
    padding-left: 2rem; 
}

/* --- Hero Section --- */

.p-hero__overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.45); 
}

.p-hero__content { 
    position: relative; 
    z-index: 2; 
    color: var(--p-white); 
}

.p-hero__title { font-size: clamp(2.5rem, 8vw, 5rem); }

@keyframes heroFadeUp { 
    0% { opacity: 0; transform: translateY(30px); } 
    100% { opacity: 1; transform: translateY(0); } 
}

.p-anim-1, .p-anim-2, .p-anim-3 { 
    opacity: 0; 
    animation: heroFadeUp 1.2s forwards; 
}

.p-anim-1 { animation-delay: 0.3s; } 
.p-anim-2 { animation-delay: 0.6s; } 
.p-anim-3 { animation-delay: 0.9s; }

/* --- About Editorial --- */
.p-about-visual { 
    position: relative; 
    padding-right: 40px; 
    padding-bottom: 40px; 
}

.p-about-image-main img {
    box-shadow: 20px 20px 0px rgba(199, 177, 81, 0.1);
}

.p-about-accent-box {
    position: absolute; 
    bottom: 0; 
    right: 0; 
    background: var(--p-gold);
    color: var(--p-dark); 
    padding: 25px 35px; 
    z-index: 2; 
    font-weight: 700; 
    letter-spacing: 2px;
}

.p-about-title { 
    font-size: clamp(2rem, 4vw, 2.5rem); 
    line-height: 1.2; 
}

.p-about-title span { 
    color: var(--p-gold); 
    font-weight: 300; 
}

.p-section-divider { 
    width: 60px; 
    height: 1px; 
    background: var(--p-gold); 
    margin: 1.5rem 0; 
}

.p-stat-title { 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 0.5rem; 
}

.p-stat-text { 
    font-size: 0.85rem; 
    color: #666; 
}

/* --- Brand Statement (Parallax) --- */
.p-brand-statement {
    background: linear-gradient(rgba(4, 4, 4, 0.5), rgba(19, 19, 19, 0.85)), url('../images/properties/property7/kfalls1.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.p-quote-icon { 
    color: var(--p-gold); 
    font-size: 2rem; 
    opacity: 0.6; 
}

.p-statement-text { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 300; 
    line-height: 1.8; 
    letter-spacing: 2px; 
    color: var(--p-white); 
    font-size: clamp(1.2rem, 3vw, 1.8rem); 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}


.p-statement-text span { 
    font-weight: 700; 
    color: var(--p-gold); 
}

/* --- Portfolio (4-Column Grid) --- */
.p-portfolio-item { 
    position: relative; 
    overflow: hidden; 
    background: var(--p-dark); 
    height: 320px;
}

.p-portfolio-img { height: 100%; }

.p-portfolio-img img { 
    height: 100%; 
    width: 100%; 
    object-fit: cover; 
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.p-portfolio-item:hover .p-portfolio-img img { 
    transform: scale(1.1); 
    opacity: 0.4; 
}

.p-portfolio-overlay {
    position: absolute; 
    inset: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(18, 18, 18, 0.2); 
    opacity: 0; 
    transition: var(--p-transition);
}

.p-portfolio-item:hover .p-portfolio-overlay { opacity: 1; }

.p-portfolio-info { 
    text-align: center; 
    transform: translateY(20px); 
    transition: var(--p-transition);
    padding: 20px;
}

.p-portfolio-item:hover .p-portfolio-info { transform: translateY(0); }

.p-item-category { 
    color: var(--p-gold); 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block; 
}

.p-item-title { 
    color: var(--p-white); 
    font-size: 1.1rem; 
    letter-spacing: 1px; 
    margin: 8px 0; 
}

.p-item-link { 
    color: var(--p-white); 
    text-decoration: none; 
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-bottom: 1px solid var(--p-gold); 
}

/* Custom Portfolio Overlay Refinement */
.p-portfolio-overlay {
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.2) 100%);
}

.p-item-link {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--p-gold);
    transition: var(--p-transition);
}

.p-item-link:hover {
    color: var(--p-gold);
    padding-left: 10px;
}

.p-item {
    transition: opacity 3.4s ease, transform 3.4s ease;
}

.p-item.d-none {
    display: none !important; /* Keep the Bootstrap default */
    opacity: 0;
    transform: translateY(10px);
}


/* --- Services Section --- */
.p-services { background-color: #fcfcfc; }

.p-service-card {
    background: var(--p-white); 
    padding: 3rem 2rem; 
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05); 
    transition: var(--p-transition);
    height: 100%; 
    position: relative;
}

.p-service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
    border-color: var(--p-gold); 
}

.p-service-icon { 
    font-size: 2.5rem; 
    color: var(--p-gold); 
    margin-bottom: 1.5rem; 
}

.p-service-title { 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--p-dark); 
}

.p-service-text { 
    font-size: 0.85rem; 
    line-height: 1.8; 
    color: #777; 
}

/* --- Action Grid (Mandates) with Cinematic Slide --- */
.p-action-grid {
    padding-top: 100px !important;
    padding-bottom: 0 !important;
    background-color: #1a1a19;
}

.p-action-grid .p-display-title { color: var(--p-white); }
.p-action-grid .p-display-title span { color: var(--p-gold); font-weight: 300; }

.p-action-grid .container-fluid { margin-top: 60px; }

.p-action-column { 
    height: 75vh; 
    overflow: hidden; 
    position: relative; 
    display: block;
    text-decoration: none !important;
}

.p-action-wrapper { 
    height: 100%; 
    width: 100%; 
    position: relative; 
}

.p-action-img { 
    width: 100%; 
    height: 125%; 
    object-fit: cover; 
    transition: transform 2.5s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.p-action-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 24, 23, 0.561); 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: var(--p-transition);
    padding-bottom: 5rem;
}

.p-action-title {
    color: var(--p-white);
    font-size: 3.5rem;
    margin-bottom: 0;
    letter-spacing: 12px;
    font-weight: 200;
    transition: var(--p-transition);
}

.p-action-column:hover .p-action-img {
    transform: translateY(-20%);
}

.p-action-column:hover .p-action-overlay {
    background: rgba(0, 0, 0, 0.6); 
}

.p-action-column:hover .p-action-title {
    color: var(--p-gold);
    transform: translateY(-15px);
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- Agent Frame & Profile --- */
.p-agent-frame { 
    border: 1px solid var(--p-gold); 
    padding: 15px; 
    position: relative; 
}

.p-agent-frame::before { 
    content: ''; 
    position: absolute; 
    top: -10px; 
    left: -10px; 
    width: 40px; 
    height: 40px; 
    border-top: 2px solid var(--p-gold); 
    border-left: 2px solid var(--p-gold); 
}

/* --- Contact Section --- */
.p-contact-card { 
    background: var(--p-white); 
    border-top: 4px solid var(--p-gold); 
}

.p-input, select.p-input, textarea.p-input { 
    border: none !important; 
    border-bottom: 1px solid #ddd !important; 
    border-radius: 0 !important; 
    padding: 1.2rem 0.5rem !important; 
    background-color: transparent !important; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 1px;
    color: var(--p-dark);
    width: 100%;
}

select.p-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C7B151' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}

.p-input:focus { 
    box-shadow: none !important; 
    border-color: var(--p-gold) !important; 
    outline: none !important;
}

/* --- Global Buttons --- */
.p-btn { 
    padding: 1.1rem 3.2rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.75rem; 
    transition: var(--p-transition); 
    text-decoration: none; 
    display: inline-block; 
}

.p-btn--primary { background: var(--p-gold); color: var(--p-dark); }
.p-btn--outline { border: 1px solid var(--p-white); color: var(--p-white); margin-left: 10px; }
.p-btn--dark { background: var(--p-dark); color: var(--p-gold); }

.p-btn:hover { 
    background: var(--p-white); 
    color: var(--p-dark); 
    transform: translateY(-5px); 
}

/* --- Purple Glass Footer Section --- */
.p-footer { 
    position: relative;
    /* Deep Royal Purple with Transparency */

    background: linear-gradient(to top,rgba(149, 26, 198, 0.128)10%,rgba(43, 19, 82, 0.175)30%); 
    
    color: #ffffff; 
    border-top: 1px solid rgba(212, 175, 55, 0.3); 
    font-family: inherit;
    /* The Glass Effect */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding-top: 3rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Optional: Subtle glow effect at the top */
.p-footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--p-gold), transparent);
    opacity: 0.5;
}

.p-footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p-gold); /* Gold stands out beautifully against purple */
    margin-bottom: 1rem;
}

.p-section-divider-small {
    width: 30px;
    height: 1px;
    background: var(--p-gold);
    margin-bottom: 1.5rem;
}

.p-footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7); /* Lighter for glass contrast */
    max-width: 300px;
    line-height: 1.8;
}

.p-footer-text, .p-footer-contact {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
}

.p-footer-contact i {
    color: var(--p-gold);
    width: 25px; 
    text-align: center;
}
.pfooter-bg{
    background: rgba(14, 8, 19, 0.978);
  
}

/* --- Social Icons for Glass Theme --- */
.p-social-icons .p-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: #fff;
    margin-right: 12px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.p-social-icons .p-social-link:hover { 
    background: var(--p-gold);
    color: #1a0c3a; /* Dark purple icon on gold hover */
    border-color: var(--p-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.p-footer-hr { 
    border-color: rgba(255, 255, 255, 0.1); 
    margin: 2rem 0;
}

.p-copyright {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1200px) {
    .p-portfolio-item { height: 350px; }
}

@media (max-width: 991px) {
    .p-header { height: auto; padding: 15px 0; }
    .navbar-collapse { 
        background: rgba(18, 18, 18, 0.98); 
        padding: 20px; 
        margin-top: 15px; 
    }
    .p-brand-statement { background-attachment: scroll; }
    .p-portfolio-item { height: 400px; }
    .p-action-column { height: 40vh; }
    .p-action-title { font-size: 2.5rem; }
    .p-footer { text-align: left; }
    .p-footer-tagline { max-width: 100%; }
}

@media (max-width: 768px) {
    .p-btn--outline { margin-left: 0; margin-top: 15px; width: 100%; text-align: center; }
    .p-btn--primary { width: 100%; text-align: center; }
}

/* --- About Page Specifics --- */

.p-gold-title {
    color: var(--p-gold);
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 300;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.p-philosophy {
    padding: 100px 0;
    background-color: var(--p-white);
}

/* --- Executive Advisor Cards --- */
.p-advisor-card {
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.4s ease;
    text-align: center;
}

.p-advisor-img-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.p-advisor-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: grayscale(20%); /* Premium editorial look */
    transition: all 0.5s ease;
}

.p-advisor-card:hover .p-advisor-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.p-advisor-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.9);
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.p-advisor-card:hover .p-advisor-social {
    bottom: 0;
}

.p-advisor-social a {
    color: var(--p-gold);
    font-size: 1rem;
    transition: opacity 0.3s;
}

.p-advisor-social a:hover {
    color: #fff;
}

.p-advisor-info {
    padding: 25px 15px;
}

.p-advisor-role {
    color: var(--p-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.p-advisor-tagline {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Enhancing the accent box for Nayah Heights */
.p-about-accent-box {
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.bg-dark {
    background-color: #0f0f0f !important;
}
#services-detail .p-service-card {
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-bottom: 3px solid var(--p-gold);
}

#services-detail .fa-check {
    color: var(--p-gold) !important;
}

#services-detail .text-muted {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Glassmorphism Service Cards --- */
.p-service-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 40px 30px;
    border-radius: 4px; /* Maintaining the sharp Roman aesthetic */
    position: relative;
    transition: all 0.4s ease;
    height: 100%;
}

.p-service-glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--p-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.p-card-mandate-label {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--p-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.p-service-icon-gold {
    font-size: 2.5rem;
    color: var(--p-gold);
    margin-bottom: 15px;
}

.p-service-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
}


/* ==========================================================================
   PRAETORIUM TESTIMONIALS - FINAL PRODUCTION CODE (TRANSITION FIXED)
   ========================================================================== */

.bg-light-surface { background-color: #f4f5f7; }
#testimonials { overflow: visible !important; }

.p-testimonial-wrapper {
    border-radius: 20px;
    background: #1e1704; 
    position: relative;
    margin-top: 100px; 
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.p-overflow-visible { overflow: visible !important; }

.p-testimonial-sidebar { border-radius: 20px 0 0 20px; z-index: 2; }
.p-quote-bubble {
    width: 60px; height: 60px; background: var(--p-gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem;
}

/* --- THE 2s CROSS-DISSOLVE LOGIC --- */
.carousel-fade .carousel-inner {
    position: relative;
    min-height: 520px; 
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 2s ease-in-out !important;
    display: block !important;
    float: none !important;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* Outgoing slide fades out */
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
    transition: opacity 3s ease-in-out !important;
    z-index: 0;
}

/* Incoming slide fades in */
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transition: opacity 2s ease-in-out !important;
    z-index: 1;
}

.p-carousel-popout {
    margin-top: -80px; margin-right: -100px; z-index: 10; position: relative;
}

.p-ref-card {
    background: white; border-radius: 10px; overflow: hidden; height: 480px; 
    display: flex; flex-direction: column; border: none; 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.p-ref-img-top { height: 300px; width: 100%; position: relative; }
.p-ref-img-top img {
    width: 100%; height: auto; min-height: 100%;
    object-fit: cover; filter: grayscale(100%); display: block;
}

.p-ref-content-under {
    background: white; margin-top: -40px; border-top-left-radius: 20px;
    padding: 2.5rem 1.5rem 1.5rem; position: relative; z-index: 5;
    flex-grow: 1; display: flex; flex-direction: column;
}

.p-ref-content-under::after {
    content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px;
    background: transparent; border-bottom-right-radius: 20px; 
    box-shadow: 5px 5px 0 5px white; transform: translateY(-98%); z-index: 6;
}

.p-stars { color: var(--p-gold); font-size: 0.75rem; }

.p-control-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: white; background: transparent; transition: 0.3s;
    z-index: 20; 
}
.p-control-btn:hover { background: var(--p-gold); border-color: var(--p-gold); }

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .p-carousel-popout { margin-right: -20px; }
    .carousel-fade .carousel-inner { min-height: 560px; }
}

@media (max-width: 991px) {
    .p-testimonial-sidebar { 
        border-radius: 20px 20px 0 0; 
        text-align: center;
        align-items: center !important;
        padding: 4rem 2rem !important;
    }
    .p-carousel-popout { margin-right: 0; margin-top: -60px; padding: 0 15px; }
    .carousel-fade .carousel-inner { min-height: 1050px; }
    .p-ref-card { margin-bottom: 30px; }
}

@media (max-width: 576px) {
    .carousel-fade .carousel-inner { min-height: 1150px; }
    .p-ref-card { height: auto; min-height: 500px; }
}


/* ==========================================
   MANDATES GRID STYLES
   ========================================== */

.tracking-widest { letter-spacing: 0.2rem; }

.p-mandate-card {
    padding: 3rem 2rem;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.p-mandate-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.p-mandate-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.p-icon-box {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--p-gold);
    transition: all 0.4s ease;
}

/* Version 6 icons sometimes have different default line-heights */
.p-icon-box i {
    line-height: 1;
}

/* --- Value Flip Cards --- */
.p-value-flip {
    background-color: transparent;
    height: 200px;
    perspective: 1000px;
}

.p-value-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.p-value-flip:hover .p-value-flip-inner {
    transform: rotateY(180deg);
}

.p-value-front, .p-value-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 4px;
}

.p-value-front {
    background: #fff;
    color: var(--p-dark);
}

.p-value-front i {
    font-size: 2.5rem;
    color: var(--p-gold);
}

.p-value-back {
    background: var(--p-dark);
    color: #fff;
    transform: rotateY(180deg);
    font-size: 0.9rem;
    line-height: 1.6;
}

.p-value-back p {
    margin: 0;
}

/* --- Refined Mandates Grid --- */
.p-mandate-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--p-dark);
}

.p-mandate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.p-mandate-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.p-mandate-wrapper:hover .p-mandate-img {
    transform: scale(1.1);
}

.p-mandate-wrapper:hover .p-mandate-glass-overlay {
    background: linear-gradient(to top, rgba(197,160,89,0.8) 0%, rgba(17,17,17,0.4) 100%);
    backdrop-filter: blur(4px);
}

.p-tag {
    display: inline-block;
    color: var(--p-gold);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.p-link-arrow {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.p-link-arrow:hover {
    color: var(--p-gold);
    gap: 15px;
}

.p-mandate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* Hover Effects */
.p-mandate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--p-gold);
}

.p-mandate-card:hover .p-icon-box {
    background: var(--p-gold);
    color: white;
    transform: rotateY(180deg); /* Subtle playful flip */
}

/* Responsive adjust */
@media (max-width: 768px) {
    .p-mandate-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .p-icon-box {
        margin: 0 auto 1.5rem;
    }
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */

.p-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Standard WhatsApp Green */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Tooltip that appears on hover */
.p-whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.p-whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

/* Hover Effects */
.p-whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    background-color: #128c7e; /* Darker WhatsApp green */
}

.p-whatsapp-float:hover .p-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Subtle Pulse Animation */
.p-whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: p-wa-pulse 2s infinite;
}

@keyframes p-wa-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Responsive: Move it up slightly on mobile if you have a bottom nav */
@media (max-width: 768px) {
    .p-whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    .p-whatsapp-tooltip { display: none; } /* Hide tooltip on mobile */
}


/* --- Portfolio Grid Items --- */
.p-portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 90%;
    background: var(--p-dark);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.p-portfolio-img {
    width: 100%;
    height: 100%;
    position: relative;
}


/* Cinematic Overlay */
.p-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 10%, rgba(197, 160, 89, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--p-transition);
    transform: translateY(20px);
}

.p-portfolio-content h4 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.img-thumbnail.border-gold {
    border: 2px solid #d4af37 !important;
    opacity: 1;
}
.img-thumbnail {
    opacity: 0.6;
    transition: 0.3s;
}
.img-thumbnail:hover {
    opacity: 1;
}

.bg-gold {
    background-color: var(--p-gold) !important;
    font-size: 0.7rem;
}

/* Hover States */
.p-portfolio-item:hover .p-portfolio-img img {
    transform: scale(1.1);
}

.p-portfolio-item:hover .p-portfolio-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Details Button Styling */
.btn-outline-light {
    border-width: 1.5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: var(--p-gold);
    border-color: var(--p-gold);
    color: #fff;
}

/* Portfolio CTA Background */
.p-portfolio-cta {
    background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)), 
                url('../images/properties/property7/kfalls4.jpeg'); /* Optional: Add a subtle building texture */
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
}

.btn-gold {
    background-color: var(--p-gold);
    color: #fff;
    border: none;
    transition: var(--p-transition);
}

.btn-gold:hover {
    background-color: #b38f4d; /* Slightly darker gold */
    color: #fff;
    transform: translateY(-2px);
}


/* Mobile Fix: Ensure the overlay info is visible on touch screens */
@media (max-width: 991px) {
    .p-portfolio-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent 100%) !important;
    }
}

/* --- Portfolio Search & Filter --- */
.p-filter-section {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.p-filter-options {
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.p-filter-options::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.p-filter-btn {
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: 1px solid #eee;
    border-radius: 50px;
    color: #666;
    transition: var(--p-transition);
}

.p-filter-btn:hover {
    border-color: var(--p-gold);
    color: var(--p-gold);
}

.p-filter-btn.active {
    background: var(--p-gold);
    border-color: var(--p-gold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

/* Search Box Styling */
.p-search-box {
    width: 100%;
    max-width: 400px;
}

.p-search-box .input-group {
    background: #f8f9fa;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--p-transition);
}

.p-search-box .input-group:focus-within {
    border-color: var(--p-gold);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.p-search-box .form-control {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    padding: 12px 20px 12px 0;
    box-shadow: none !important;
}

.p-search-box .form-control::placeholder {
    color: #aaa;
}

/* --- Management Status Badge --- */
.p-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(5px);
    color: var(--p-gold);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 5px 15px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    pointer-events: none; /* Allows hover to pass through to the image */
}

/* Ensure the overlay stays above the badge when hovered */
.p-portfolio-overlay {
    z-index: 10;
}

/* --- Modal Styling --- */
.p-modal-glass .modal-content {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.2) !important;
}

#modalImg {
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8;
}

#modalFeatures li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

#modalFeatures li::before {
    content: "\f058"; /* FontAwesome Check Circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--p-gold);
}

.p-modal-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 177, 81, 0.2);
    padding: 15px 5px;
    border-radius: 8px;
    text-align: center;
    transition: var(--p-transition);
}

.p-modal-stat-card:hover {
    border-color: var(--p-gold);
    background: rgba(199, 177, 81, 0.1);
}

.p-modal-stat-card span {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.text-gold-50 {
    color: rgba(197, 160, 89, 0.7);
}

.x-small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-modal-gallery-img {
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.p-carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(197, 160, 89, 0.3); /* Slight Gold Border */
}


/* --- Service Pillars --- */
.p-service-pillar-card {
    background: #fff;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    top: 0;
}

.p-service-pillar-card:hover {
    top: -15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--p-gold) !important;
}

.p-pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: 0.3s;
}

.p-service-pillar-card:hover .p-pillar-icon {
    background: var(--p-gold);
}

.p-service-pillar-card:hover .p-pillar-icon i {
    color: #fff !important;
}

/* --- Process Timeline --- */
.p-process-timeline {
    position: relative;
}

/* Connecting line for desktop */
@media (min-width: 768px) {
    .p-process-timeline::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 10%;
        right: 10%;
        height: 1px;
        background: rgba(197, 160, 89, 0.3);
        z-index: 0;
    }
}

.p-process-step {
    position: relative;
    z-index: 1;
}

.p-step-number {
    width: 50px;
    height: 50px;
    background: var(--p-dark);
    color: var(--p-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid var(--p-gold);
}

/* --- Process Timeline Styling --- */
.p-process-timeline {
    position: relative;
    padding-top: 20px;
}

/* Horizontal line connecting steps on desktop */
@media (min-width: 768px) {
    .p-process-timeline::before {
        content: '';
        position: absolute;
        top: 45px; /* Aligned with middle of step circles */
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--p-gold), transparent);
        z-index: 0;
        opacity: 0.3;
    }
}

.p-process-step {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.p-process-step:hover {
    transform: translateY(-5px);
}

.p-step-number {
    width: 50px;
    height: 50px;
    background: var(--p-dark);
    color: var(--p-gold);
    border: 2px solid var(--p-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 0 15px rgba(199, 177, 81, 0.2);
}

.p-process-step h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Login Page Specific Styles */
.p-login-wrapper {
    min-height: 60vh;
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)), url('../images/praetorium/property1/property1.10.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.p-login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.p-login-icon-box {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 0 20px rgba(199, 177, 81, 0.3);
}

.p-login-icon-box img {
    width: 100%;
    height: auto;
}

.p-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.p-input-icon {
    position: absolute;
    left: 15px;
    color: #C7B151;
    font-size: 0.9rem;
}

.p-form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px 12px 45px;
    color: white;
    transition: all 0.3s ease;
}

.p-form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #C7B151;
    outline: none;
    box-shadow: 0 0 10px rgba(199, 177, 81, 0.2);
}

.p-alert-glass {
    background: rgba(255, 68, 68, 0.1);
    color: #ff8888;
    border: 1px solid rgba(255, 68, 68, 0.2) !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.hover-gold:hover {
    color: #C7B151 !important;
}

/* Animation */
.p-anim-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}