/* Root Variables - Royal Theme */
:root {
    /* Royal Color Palette */
    --royal-purple: 75 35% 25%;      /* #4A2C5A */
    --royal-gold: 45 95% 55%;        /* #F4C430 */
    --royal-navy: 210 45% 20%;       /* #1C3F5C */
    --royal-cream: 45 25% 95%;       /* #F8F6F0 */
    --royal-silver: 0 0% 85%;        /* #D9D9D9 */
    
    /* Neutral Colors */
    --white: 0 0% 100%;              /* #FFFFFF */
    --black: 0 0% 0%;                /* #000000 */
    --gray-100: 0 0% 96%;            /* #F5F5F5 */
    --gray-200: 0 0% 93%;            /* #EDEDED */
    --gray-300: 0 0% 87%;            /* #DEDEDE */
    --gray-400: 0 0% 74%;            /* #BCBCBC */
    --gray-500: 0 0% 62%;            /* #9E9E9E */
    --gray-600: 0 0% 46%;            /* #757575 */
    --gray-700: 0 0% 38%;            /* #616161 */
    --gray-800: 0 0% 26%;            /* #424242 */
    --gray-900: 0 0% 13%;            /* #212121 */
    
    /* Status Colors */
    --success: 142 71% 45%;          /* #28A745 */
    --danger: 354 70% 54%;           /* #DC3545 */
    --warning: 45 100% 51%;          /* #FFC107 */
    --info: 188 78% 41%;             /* #17A2B8 */
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
    --shadow-md: 0 4px 6px -1px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.06);
    --shadow-lg: 0 10px 15px -3px hsl(0 0% 0% / 0.1), 0 4px 6px -2px hsl(0 0% 0% / 0.05);
    --shadow-xl: 0 20px 25px -5px hsl(0 0% 0% / 0.1), 0 10px 10px -5px hsl(0 0% 0% / 0.04);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: hsl(var(--gray-800));
    background-color: hsl(var(--white));
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: hsl(var(--gray-900));
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.1rem; font-weight: 500; }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: hsl(var(--gray-600));
}

/* Royal Text Styling */
.royal-text {
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Navigation */
.royal-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    padding: 1rem 0;
}

.royal-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.royal-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: hsl(var(--gray-900)) !important;
    font-family: var(--font-display);
    font-weight: 700;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-text-container {
    position: relative;
    display: inline-block;
}

.brand-crown {
    position: absolute;
    top: -6px;
    left: 4px;
    color: hsl(var(--royal-gold));
    font-size: 1.1rem;
    z-index: 1;
    animation: crownGlow 2s ease-in-out infinite alternate;
    transform: rotate(-12deg) translateY(0px);
    transform-origin: center bottom;
    filter: drop-shadow(0 2px 4px hsl(var(--royal-gold) / 0.3));
}

.brand-text {
    font-size: 1.5rem;
    position: relative;
    z-index: 0;
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: hsl(var(--gray-600));
    font-style: italic;
    margin-top: -2px;
}

@keyframes crownGlow {
    0% { 
        color: hsl(var(--royal-gold));
        text-shadow: 0 0 5px hsl(var(--royal-gold) / 0.3);
    }
    100% { 
        color: hsl(var(--royal-purple));
        text-shadow: 0 0 8px hsl(var(--royal-purple) / 0.4);
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: hsl(var(--gray-700)) !important;
    margin: 0 0.5rem;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: hsl(var(--royal-purple)) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn-royal {
    background: linear-gradient(135deg, hsl(var(--royal-purple)), hsl(var(--royal-navy)));
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-royal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
    transition: var(--transition-base);
    z-index: 0;
}

.btn-royal:hover::before {
    left: 0;
}

.btn-royal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-royal * {
    position: relative;
    z-index: 1;
}

.btn-outline-royal {
    border: 2px solid hsl(var(--royal-purple));
    color: hsl(var(--royal-purple));
    background: transparent;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-base);
}

.btn-outline-royal:hover {
    background: hsl(var(--royal-purple));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, hsl(var(--royal-navy) / 0.9), hsl(var(--royal-purple) / 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="50" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--royal-gold));
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.royal-icon {
    font-size: 3rem;
    color: hsl(var(--royal-gold));
    margin-bottom: 1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: hsl(var(--gray-600));
    max-width: 600px;
    margin: 0 auto 2rem;
}

.bg-light-royal {
    background: linear-gradient(135deg, hsl(var(--royal-cream)), hsl(var(--gray-100)));
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid hsl(var(--gray-200));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: hsl(var(--royal-purple));
}

.service-title {
    color: hsl(var(--gray-900));
    margin-bottom: 1rem;
}

.service-description {
    color: hsl(var(--gray-600));
    margin-bottom: 1.5rem;
}

.service-link {
    color: hsl(var(--royal-purple));
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: hsl(var(--royal-gold));
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

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

.property-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--gray-200)), hsl(var(--gray-300)));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: hsl(var(--gray-500));
}

.property-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: hsl(var(--royal-gold));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-badge.featured {
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
}

.property-badge.virtual-tour {
    background: linear-gradient(135deg, hsl(280, 100%, 60%), hsl(280, 100%, 70%));
    color: white;
    top: 50px;
    font-size: 0.75rem;
}

.virtual-tour-btn {
    background: linear-gradient(135deg, hsl(280, 100%, 60%), hsl(280, 100%, 70%));
    border: none;
    color: white;
    transition: var(--transition-fast);
}

.virtual-tour-btn:hover {
    background: linear-gradient(135deg, hsl(280, 100%, 50%), hsl(280, 100%, 60%));
    color: white;
    transform: translateY(-1px);
}

.property-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--royal-purple));
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.property-title {
    color: hsl(var(--gray-900));
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.property-address {
    color: hsl(var(--gray-600));
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    font-size: 0.85rem;
    color: hsl(var(--gray-600));
    display: flex;
    align-items: center;
}

.feature i {
    color: hsl(var(--royal-purple));
    margin-right: 0.25rem;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, hsl(var(--royal-navy) / 0.9), hsl(var(--royal-purple) / 0.8));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 76px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filters-section {
    padding: 2rem 0;
}

.property-filters .form-select,
.property-filters .form-control {
    border-radius: 10px;
    border: 2px solid hsl(var(--gray-200));
    transition: var(--transition-fast);
}

.property-filters .form-select:focus,
.property-filters .form-control:focus {
    border-color: hsl(var(--royal-purple));
    box-shadow: 0 0 0 0.2rem hsl(var(--royal-purple) / 0.25);
}

.results-count {
    color: hsl(var(--gray-600));
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: hsl(var(--gray-600));
}

.no-results i {
    color: hsl(var(--gray-400));
}

/* About Section */
.about-preview {
    padding: var(--section-padding);
}

.about-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, hsl(var(--gray-200)), hsl(var(--gray-300)));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: hsl(var(--gray-500));
    box-shadow: var(--shadow-lg);
}

.image-placeholder.large {
    width: 400px;
    height: 500px;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.about-highlights {
    margin: 2rem 0;
}

.highlight {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.highlight i {
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, hsl(var(--royal-navy)), hsl(var(--royal-purple)));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.royal-footer {
    background: hsl(var(--gray-900));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-brand h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: hsl(var(--royal-gold));
}

.footer-brand p {
    color: hsl(var(--gray-400));
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: hsl(var(--gray-800));
    color: hsl(var(--gray-400));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: hsl(var(--royal-purple));
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links h6 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: hsl(var(--gray-400));
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: hsl(var(--royal-gold));
}

.contact-info p {
    color: hsl(var(--gray-400));
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: hsl(var(--royal-gold));
    width: 20px;
}

.footer-divider {
    border-color: hsl(var(--gray-700));
    margin: 2rem 0 1rem;
}

.copyright,
.footer-tagline {
    color: hsl(var(--gray-500));
    margin: 0;
}

.realtor-card {
    text-align: center;
}

.business-card-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border: 2px solid hsl(var(--royal-gold));
}

.broker-info h6 {
    color: hsl(var(--royal-gold));
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.broker-details {
    font-size: 0.9rem;
    line-height: 1.4;
    color: hsl(var(--gray-300));
}

.broker-details strong {
    color: hsl(var(--royal-gold));
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: hsl(var(--gray-400));
}

.contact-details i {
    color: hsl(var(--royal-gold));
    width: 16px;
}

/* Virtual Tour Modal */
.virtual-tour-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.virtual-tour-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.virtual-tour-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 95vw;
    max-height: 95vh;
    width: 1200px;
    height: 800px;
    overflow: hidden;
}

.virtual-tour-header {
    background: linear-gradient(135deg, hsl(var(--royal-purple)), hsl(var(--royal-purple) / 0.9));
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.virtual-tour-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.virtual-tour-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.virtual-tour-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.virtual-tour-frame {
    width: 100%;
    height: calc(100% - 80px);
    border: none;
}

.virtual-tour-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: hsl(var(--gray-600));
}

.virtual-tour-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Loan Qualifier Styles */
.qualifier-section {
    background: linear-gradient(135deg, hsl(var(--white)), hsl(var(--royal-cream)));
}

.qualifier-form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(var(--royal-gold) / 0.2);
}

.qualifier-form .form-control,
.qualifier-form .form-select {
    border-radius: 10px;
    border: 2px solid hsl(var(--gray-200));
    transition: var(--transition-fast);
    padding: 0.75rem 1rem;
}

.qualifier-form .form-control:focus,
.qualifier-form .form-select:focus {
    border-color: hsl(var(--royal-purple));
    box-shadow: 0 0 0 0.2rem hsl(var(--royal-purple) / 0.25);
}

.qualifier-form .form-check-input:checked {
    background-color: hsl(var(--royal-purple));
    border-color: hsl(var(--royal-purple));
}

.info-panel {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    border-left: 4px solid hsl(var(--royal-gold));
}

.benefit-list {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-item i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.benefit-item h6 {
    margin-bottom: 0.25rem;
    color: hsl(var(--gray-900));
}

.benefit-item p {
    color: hsl(var(--gray-600));
    margin: 0;
    font-size: 0.9rem;
}

.contact-prompt {
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.05), hsl(var(--royal-gold) / 0.05));
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-prompt h6 {
    color: hsl(var(--royal-purple));
    margin-bottom: 0.5rem;
}

.contact-prompt p {
    color: hsl(var(--gray-600));
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Results Section */
.results-section {
    background: linear-gradient(135deg, hsl(var(--royal-cream)), hsl(var(--gray-100)));
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid hsl(var(--royal-gold) / 0.2);
    transition: var(--transition-base);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--royal-gold) / 0.4);
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.result-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.result-icon i {
    font-size: 1.5rem;
    color: hsl(var(--royal-purple));
}

.result-title {
    color: hsl(var(--royal-purple));
    margin: 0;
    font-size: 1.25rem;
}

.result-description {
    color: hsl(var(--gray-700));
    margin-bottom: 1rem;
    font-weight: 500;
}

.result-details {
    border-top: 1px solid hsl(var(--gray-200));
    padding-top: 1rem;
}

.detail-section {
    margin-bottom: 1rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h6 {
    color: hsl(var(--royal-purple));
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section p {
    color: hsl(var(--gray-600));
    font-size: 0.9rem;
    margin: 0;
}

.no-results-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid hsl(var(--royal-gold) / 0.2);
}

.no-results-card h4 {
    color: hsl(var(--royal-purple));
    margin-bottom: 1rem;
}

.no-results-card p {
    color: hsl(var(--gray-600));
    margin-bottom: 2rem;
}

.next-steps {
    background: hsl(var(--gray-100));
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.next-steps h6 {
    color: hsl(var(--royal-purple));
    margin-bottom: 1rem;
}

.next-steps ul {
    color: hsl(var(--gray-700));
    margin: 0;
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

/* Mission Statement */
.mission-section {
    background: linear-gradient(135deg, hsl(var(--royal-cream)), hsl(var(--white)));
}

.mission {
    background: linear-gradient(135deg, hsl(var(--white)), hsl(var(--royal-cream) / 0.3));
    border: 2px solid hsl(var(--royal-gold));
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    font-size: 1.1rem;
    line-height: 1.7;
    color: hsl(var(--gray-700));
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)), hsl(var(--royal-gold)));
}

.mission h2 {
    color: hsl(var(--royal-purple));
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-display);
    position: relative;
}

.mission h2 i {
    color: hsl(var(--royal-gold));
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.mission p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.mission p:last-child {
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
    color: hsl(var(--royal-purple));
    font-style: italic;
    font-size: 1.2rem;
}

.mission em {
    color: hsl(var(--royal-purple));
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px hsl(var(--royal-purple) / 0.1);
}

/* Mobile Navigation - Hide dropdown, show direct links */
@media (max-width: 991.98px) {
    /* Hide the dropdown toggle on mobile */
    .mobile-tools-toggle {
        display: none !important;
    }
    
    /* Show the direct tool links on mobile */
    .mobile-tool-direct {
        display: block !important;
    }
    
    /* Style mobile tool links */
    .mobile-tool-direct .nav-link {
        color: white !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .mobile-tool-direct .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-radius: 0.25rem !important;
    }
    
    .mobile-tool-direct .nav-link i {
        color: hsl(var(--royal-gold)) !important;
    }
}

/* Desktop - Show dropdown, hide direct links */
@media (min-width: 992px) {
    .mobile-tool-direct {
        display: none !important;
    }
}

/* Fix dropdown menu text visibility */
.navbar-nav .dropdown-menu {
    background-color: white !important;
    border: 1px solid hsl(var(--gray-300)) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.navbar-nav .dropdown-item {
    color: hsl(var(--gray-800)) !important;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: hsl(var(--royal-purple) / 0.1) !important;
    color: hsl(var(--royal-purple)) !important;
}

.navbar-nav .dropdown-divider {
    border-color: hsl(var(--gray-300)) !important;
}

/* Program Finder */
.program-finder-section {
    background: linear-gradient(135deg, hsl(var(--royal-cream)), hsl(var(--gray-100)));
}

.program-finder {
    background: linear-gradient(135deg, hsl(var(--white)), hsl(var(--royal-cream) / 0.2));
    border: 2px solid hsl(var(--royal-gold));
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.program-finder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)), hsl(var(--royal-gold)));
}

.program-finder h2 {
    color: hsl(var(--royal-purple));
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: var(--font-display);
}

.program-finder h2 i {
    color: hsl(var(--royal-gold));
}

.finder-subtitle {
    text-align: center;
    color: hsl(var(--gray-600));
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.program-form .form-control,
.program-form .form-select {
    border-radius: 10px;
    border: 2px solid hsl(var(--gray-200));
    transition: var(--transition-fast);
    padding: 0.75rem 1rem;
}

.program-form .form-control:focus,
.program-form .form-select:focus {
    border-color: hsl(var(--royal-purple));
    box-shadow: 0 0 0 0.2rem hsl(var(--royal-purple) / 0.25);
}

.program-form .form-label {
    font-weight: 600;
    color: hsl(var(--gray-800));
    margin-bottom: 0.5rem;
}

.program-results {
    margin-top: 2rem;
    background: linear-gradient(135deg, hsl(var(--white)), hsl(var(--royal-purple) / 0.02));
    border: 1px solid hsl(var(--royal-gold) / 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.program-results h4 {
    color: hsl(var(--royal-purple));
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--font-display);
}

.program-results h4 i {
    color: hsl(var(--royal-gold));
}

.program-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid hsl(var(--royal-gold));
    transition: var(--transition-base);
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.program-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.program-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.program-icon i {
    font-size: 1.25rem;
    color: hsl(var(--royal-purple));
}

.program-content h5 {
    color: hsl(var(--royal-purple));
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.program-description {
    color: hsl(var(--gray-700));
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.program-benefits {
    color: hsl(var(--gray-600));
    font-size: 0.9rem;
    font-style: italic;
}

.program-benefits::before {
    content: "Benefits: ";
    font-weight: 600;
    color: hsl(var(--royal-purple));
}

.next-steps-cta {
    background: hsl(var(--gray-100));
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.next-steps-cta p {
    color: hsl(var(--gray-700));
    margin-bottom: 1rem;
    font-weight: 500;
}

.program-actions {
    border-top: 1px solid hsl(var(--gray-200));
    padding-top: 1rem;
    margin-top: 1rem;
}

.program-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.program-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.program-actions .btn-royal {
    background: linear-gradient(135deg, hsl(var(--royal-purple)), hsl(var(--royal-purple) / 0.9));
    border: none;
    color: white;
}

.program-actions .btn-royal:hover {
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.9), hsl(var(--royal-purple)));
    color: white;
}

.program-actions .btn-outline-royal {
    border: 2px solid hsl(var(--royal-purple));
    color: hsl(var(--royal-purple));
    background: transparent;
}

.program-actions .btn-outline-royal:hover {
    background: hsl(var(--royal-purple));
    color: white;
}

/* Education Cards */
.education-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid hsl(var(--gray-200));
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--royal-gold));
}

.education-card .card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.education-card .card-icon i {
    font-size: 2rem;
    color: hsl(var(--royal-purple));
}

.education-card h5 {
    color: hsl(var(--royal-purple));
    margin-bottom: 1rem;
}

.education-card p {
    color: hsl(var(--gray-600));
    line-height: 1.6;
}

/* Contact Page */
.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.form-title {
    color: hsl(var(--gray-900));
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: hsl(var(--gray-600));
    margin-bottom: 2rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: hsl(var(--gray-700));
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid hsl(var(--gray-200));
    border-radius: 10px;
    padding: 0.75rem;
    transition: var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: hsl(var(--royal-purple));
    box-shadow: 0 0 0 0.2rem hsl(var(--royal-purple) / 0.25);
}

.contact-info-sidebar {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.contact-methods {
    margin: 2rem 0;
}

/* Media Gallery Styles */
.media-gallery {
    background: hsl(var(--royal-cream));
}

.media-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid hsl(var(--gray-200));
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--royal-gold));
}

.media-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--gray-200));
}

.media-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: hsl(var(--royal-purple));
}

.media-header h5 {
    color: hsl(var(--royal-purple));
    margin: 0;
    font-weight: 600;
}

.media-content video,
.media-content audio {
    border: 2px solid hsl(var(--gray-200));
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.media-content video:hover,
.media-content audio:hover {
    border-color: hsl(var(--royal-gold));
    box-shadow: var(--shadow-md);
}

.media-description {
    color: hsl(var(--gray-600));
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Loan Qualifier Styles */
.qualifier-section {
    background: hsl(var(--gray-100));
}

.qualifier-form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.info-panel {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.benefit-list {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-item i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.benefit-item h6 {
    color: hsl(var(--gray-900));
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: hsl(var(--gray-600));
    margin: 0;
    font-size: 0.9rem;
}

/* Results Section Styles */
.results-section {
    background: hsl(var(--royal-cream));
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid hsl(var(--gray-200));
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--royal-gold));
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--gray-200));
}

.result-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.result-icon i {
    color: hsl(var(--royal-purple));
    font-size: 1.25rem;
}

.result-title {
    color: hsl(var(--royal-purple));
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-description {
    color: hsl(var(--gray-700));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.result-details .detail-section {
    margin-bottom: 1rem;
}

.result-details h6 {
    color: hsl(var(--royal-purple));
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.result-details p {
    color: hsl(var(--gray-600));
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.royal-link {
    color: hsl(var(--royal-purple));
    text-decoration: none;
    font-weight: 600;
}

.royal-link:hover {
    color: hsl(var(--royal-gold));
    text-decoration: underline;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.method-icon i {
    color: hsl(var(--royal-purple));
    font-size: 1.25rem;
}

.method-info h6 {
    color: hsl(var(--gray-900));
    margin-bottom: 0.25rem;
}

.method-info p {
    color: hsl(var(--gray-600));
    margin: 0;
}

.method-info a {
    color: hsl(var(--royal-purple));
    text-decoration: none;
}

.method-info a:hover {
    color: hsl(var(--royal-gold));
}

.quick-response {
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.response-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: hsl(var(--royal-purple));
    font-weight: 600;
}

.response-badge i {
    margin-right: 0.5rem;
}

/* Services Page */
.service-detail-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
    border: 1px solid hsl(var(--gray-200));
}

.service-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.service-icon-large i {
    font-size: 2rem;
    color: hsl(var(--royal-purple));
}

.service-name {
    color: hsl(var(--gray-900));
    margin-bottom: 0.5rem;
}

.service-features {
    margin-bottom: 2rem;
}

.service-features h6 {
    color: hsl(var(--gray-900));
    margin-bottom: 1rem;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--gray-600));
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--royal-gold));
    font-weight: bold;
}

/* Process Steps */
.process-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid hsl(var(--gray-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
}

.step-icon i {
    font-size: 2rem;
    color: hsl(var(--royal-purple));
}

.step-title {
    color: hsl(var(--gray-900));
    margin-bottom: 1rem;
}

.step-description {
    color: hsl(var(--gray-600));
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
}

.testimonial-stars {
    color: hsl(var(--royal-gold));
    margin-bottom: 1rem;
}

.testimonial-text {
    color: hsl(var(--gray-700));
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: hsl(var(--gray-900));
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: hsl(var(--gray-600));
    font-size: 0.9rem;
}

/* About Page Enhancements */
.about-image-container {
    position: relative;
}

.about-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, hsl(var(--royal-gold)), hsl(var(--royal-purple)));
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.about-badge i {
    margin-right: 0.5rem;
}

.credential-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

.credential-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.credential-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.credential-icon i {
    font-size: 1.75rem;
    color: hsl(var(--royal-purple));
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.expertise-item i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.expertise-item h6 {
    margin-bottom: 0.25rem;
}

.area-group {
    margin-bottom: 2rem;
}

.area-group h6 {
    color: hsl(var(--gray-900));
    margin-bottom: 0.75rem;
}

.area-group ul {
    list-style: none;
    padding: 0;
}

.area-group li {
    color: hsl(var(--gray-600));
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.area-group li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: hsl(var(--royal-purple));
}

.contact-info-box {
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-info-box h6 {
    color: hsl(var(--gray-900));
    margin-bottom: 0.5rem;
}

.value-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 1.75rem;
    color: hsl(var(--royal-purple));
}

.mission-statement {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.signature {
    margin-top: 1rem;
    color: hsl(var(--royal-purple));
    font-family: var(--font-display);
}

/* Accordion Customization */
.accordion-item {
    border: 1px solid hsl(var(--gray-200));
    border-radius: 10px !important;
    margin-bottom: 1rem;
}

.accordion-button {
    background: white;
    border: none;
    color: hsl(var(--gray-900));
    font-weight: 600;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.1), hsl(var(--royal-gold) / 0.1));
    color: hsl(var(--royal-purple));
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem hsl(var(--royal-purple) / 0.25);
}

.accordion-body {
    padding: 1.25rem;
    color: hsl(var(--gray-700));
}

/* Emergency Contact */
.emergency-contact {
    background: linear-gradient(135deg, hsl(var(--royal-purple)), hsl(var(--royal-navy))) !important;
}

.emergency-contact h5 {
    color: white;
    margin-bottom: 0.25rem;
}

.emergency-contact p {
    color: hsl(var(--gray-300));
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.5rem; }
    .page-title { font-size: 2.5rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .page-title { font-size: 2rem; }
    .hero-stats { justify-content: center; }
    .cta-buttons { justify-content: center; }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon-large {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .page-title { font-size: 1.75rem; }
    .page-subtitle { font-size: 1rem; }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .contact-info-sidebar {
        margin-top: 2rem;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .filters-section .row {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .page-header { padding: 6rem 0 3rem; }
    
    .service-card,
    .property-card,
    .contact-form-container,
    .contact-info-sidebar {
        margin-bottom: 2rem;
    }
    
    .hero-image {
        height: 400px;
        margin-top: 2rem;
    }
    
    .floating-card {
        padding: 1.5rem;
    }
    
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .about-image {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 300px;
    }
    
    .image-placeholder.large {
        width: 300px;
        height: 350px;
    }
}

/* Loading States and Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-in-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .royal-navbar,
    .cta-section,
    .footer {
        display: none !important;
    }
    
    .page-header {
        margin-top: 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --royal-purple: 0 0% 0%;
        --royal-gold: 45 100% 40%;
        --royal-navy: 0 0% 10%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Success Stories Styles */
.story-form-section {
    background: linear-gradient(135deg, hsl(var(--royal-cream)), hsl(var(--royal-gold) / 0.1));
}

.story-form-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid hsl(var(--royal-gold) / 0.3);
}

.form-title {
    color: hsl(var(--royal-purple));
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.form-subtitle {
    color: hsl(var(--gray-600));
    text-align: center;
    margin-bottom: 2rem;
}

.story-form .form-control {
    border: 2px solid hsl(var(--gray-200));
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
}

.story-form .form-control:focus {
    border-color: hsl(var(--royal-gold));
    box-shadow: 0 0 0 0.2rem hsl(var(--royal-gold) / 0.25);
}

.story-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-primary);
}

.story-gallery-section {
    background: linear-gradient(135deg, hsl(var(--royal-purple) / 0.05), hsl(var(--royal-gold) / 0.05));
}

.story-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid hsl(var(--royal-gold) / 0.3);
    height: 100%;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

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

.story-content {
    padding: 1.5rem;
}

.story-header {
    margin-bottom: 1rem;
}

.story-name {
    color: hsl(var(--royal-purple));
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.story-location {
    color: hsl(var(--gray-500));
    font-size: 0.9rem;
}

.story-text {
    color: hsl(var(--gray-700));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.story-text p {
    font-style: italic;
    position: relative;
}

.story-text p::before {
    content: '"';
    color: hsl(var(--royal-gold));
    font-size: 2rem;
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    font-family: var(--font-display);
}

.story-footer {
    border-top: 1px solid hsl(var(--gray-100));
    padding-top: 1rem;
}

.no-stories-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px dashed hsl(var(--royal-gold) / 0.5);
}

.no-stories-card h4 {
    color: hsl(var(--royal-purple));
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.no-stories-card p {
    color: hsl(var(--gray-600));
    margin-bottom: 1.5rem;
}

/* Form Styling Enhancements */
.story-form .form-label {
    color: hsl(var(--gray-800));
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.story-form .form-text {
    color: hsl(var(--gray-500));
    font-size: 0.875rem;
}

/* Responsive Story Cards */
@media (max-width: 768px) {
    .story-form-container {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .story-content {
        padding: 1rem;
    }
    
    .story-text p::before {
        left: -0.5rem;
        font-size: 1.5rem;
    }
}

/* Business card container and overlay */
.business-card-container {
    position: relative;
    width: 100%;
}

.business-card-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.business-email-footer {
    color: hsl(var(--royal-gold));
    margin: 0;
    font-size: 0.9rem;
}

.business-email-footer i {
    color: hsl(var(--royal-gold));
}

.business-email-footer strong {
    color: hsl(var(--white));
    font-weight: 600;
}

/* Digital Business Card Styling */
.digital-business-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 2px solid hsl(var(--royal-gold) / 0.3);
    overflow: hidden;
    width: 100%;
}

.digital-business-card .card-header {
    background: linear-gradient(135deg, hsl(var(--royal-purple)), hsl(var(--royal-navy)));
    color: white;
    padding: 1.5rem 1rem;
}

.digital-business-card .card-body {
    padding: 1.5rem;
}

.contact-grid {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: hsl(var(--gray-100));
    transition: var(--transition-base);
    border-left: 3px solid hsl(var(--royal-gold));
}

.contact-item:hover {
    background: hsl(var(--royal-gold) / 0.1);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    width: 20px;
    text-align: center;
    margin-top: 2px;
    font-size: 1.1rem;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: hsl(var(--gray-800));
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: hsl(var(--royal-purple));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: hsl(var(--royal-navy));
    text-decoration: underline;
}
