* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default: Allow scrolling on all pages except homepage */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Homepage only: Prevent scrolling */
body.homepage {
    overflow: hidden;
    height: 100vh;
}

/* Other pages: Allow scrolling in content area */
body:not(.homepage) {
    overflow: auto;
    min-height: 100vh;
}

/* Agent portal: Ensure scrolling works */
#portalContent,
#listingsSection,
#uploadFormSection {
    overflow: visible;
    min-height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.agent-name-logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

.nar-logo {
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-link-item {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 5px;
}

.nav-link-item:hover {
    background: rgba(255,255,255,0.1);
    color: #3498db;
}

.nav-link-item.contact-button {
    background: #3498db;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
}

.nav-link-item.contact-button:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Content sections on other pages */
.page-hero,
.hero-image-section,
.listings,
.sell-content,
.about-full,
.agent-portal-section {
    margin-top: 60px;
}

.page-hero:first-of-type {
    margin-top: 60px;
}

.hero-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
}

.agent-name {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 5px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.bench-image-container {
    margin: 0 auto;
    max-width: 70vw;
    max-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bench-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    border: 5px solid white;
    display: block;
}

.clickable-overlay {
    position: absolute;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clickable-overlay:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

#buyHotspot {
    left: 0;
    top: 0;
    width: 33.33%;
    height: 100%;
}

#julieHotspot {
    left: 33.33%;
    top: 0;
    width: 33.34%;
    height: 100%;
}

#sellHotspot {
    left: 66.67%;
    top: 0;
    width: 33.33%;
    height: 100%;
}

.bench-hint {
    font-size: 0.75rem;
    color: #f39c12;
    margin: 0;
    padding: 0;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    font-weight: 300;
}

.experience {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2980b9;
}

/* Properties Section */
.properties {
    padding: 5rem 0;
    background: #f8f9fa;
}

.properties h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
}

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-image-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.property-banner {
    position: absolute;
    top: 30px;
    right: -50px;
    background: #e74c3c;
    color: white;
    padding: 10px 80px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
    letter-spacing: 2px;
}

.property-banner.sold {
    background: #e74c3c;
}

.property-banner.pending {
    background: #e74c3c;
}

.property-banner.coming-soon {
    background: #e74c3c;
}

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.price {
    font-size: 1.8rem;
    color: #3498db;
    font-weight: bold;
    margin: 0.5rem 0;
}

.details {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.location {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.agent-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.agent-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.title {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.agent-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.credentials {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.credential {
    text-align: center;
}

.credential strong {
    display: block;
    font-size: 2rem;
    color: #3498db;
}

.credential span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #3498db;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.submit-button {
    background: #3498db;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #2980b9;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Homepage: Fixed footer at bottom */
body.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.homepage main {
    flex: 1;
}

body.homepage footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Other pages: Normal footer at end of content */
body:not(.homepage) {
    padding-bottom: 0;
}

body:not(.homepage) footer {
    position: relative;
    margin-top: 3rem;
}

/* Mobile: Ensure listings are fully visible */
@media (max-width: 768px) {
    body.homepage {
        padding-bottom: 60px; /* Space for fixed footer */
    }
    
    .listings {
        padding-bottom: 2rem;
    }
    
    .property-grid {
        padding-bottom: 2rem;
    }
}

/* Add padding to body to prevent content from being hidden behind fixed footer */
body {
    padding-bottom: 150px;
}

/* Extra padding for agent portal sections with listings */
#listingsSection {
    padding-bottom: 3rem;
}

.listings-grid {
    margin-bottom: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bench-image-container {
        max-width: 100%;
    }

    .page-hero-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 0.75rem 0;
    }

    .navbar-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        position: relative;
        align-items: center;
    }

    .logo-section {
        position: static;
        transform: none;
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .nav-left {
        order: 2;
        position: static;
        transform: none;
        flex: 0 0 auto;
    }

    .nav-right {
        order: 3;
        display: flex;
        gap: 0.5rem;
        justify-content: space-between;
        flex: 1;
        position: static;
        transform: none;
        margin-left: 0;
    }

    .agent-name-logo {
        font-size: 1.3rem;
    }

    .nar-logo {
        height: 25px;
    }

    .nav-link-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .contact-button {
        white-space: nowrap;
    }

    .hero {
        margin-top: 100px;
        height: calc(100vh - 100px);
    }
    
    .page-hero {
        margin-top: 100px;
    }

    .hero-content {
        gap: 0.3rem;
    }

    .bench-image-container {
        max-width: 85vw;
        max-height: 75vh;
    }

    .bench-image {
        max-height: 75vh;
        border: 3px solid white;
        border-radius: 10px;
    }

    .bench-hint {
        font-size: 0.85rem;
        margin-top: 0.2rem;
    }

    .page-hero {
        padding: 1rem;
    }

    .hero-image-section {
        padding: 1.5rem 0;
    }

    .page-hero-image {
        border: 3px solid white;
        border-radius: 10px;
        max-height: 60vh;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .credentials {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .agent-name-logo {
        font-size: 1.2rem;
    }

    .nar-logo {
        height: 25px;
    }

    .nav-link-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .hero-content {
        gap: 0.2rem;
    }

    .bench-image {
        border: 2px solid white;
        border-radius: 8px;
        max-height: 70vh;
    }

    .bench-image-container {
        max-height: 70vh;
        max-width: 90vw;
    }

    .bench-hint {
        font-size: 0.75rem;
        margin-top: 0.1rem;
    }

    .page-hero-image {
        border: 2px solid white;
        border-radius: 8px;
        max-height: 55vh;
    }

    .hero-image-section {
        padding: 1rem 0;
    }
}


/* Buy Page Styles */
.page-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    margin-top: 60px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin: 0;
}

.page-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.hero-image-section {
    background: #f8f9fa;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-image {
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border: 5px solid white;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.listings {
    padding: 5rem 0;
    background: #f8f9fa;
}

.property-card .description {
    color: #555;
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.property-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.property-button:hover {
    background: #2980b9;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Make bench image clickable */
.bench-image-container {
    cursor: pointer;
    position: relative;
}

.bench-image-container:hover .bench-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    .page-hero {
        padding: 1rem;
    }

    .hero-image-section {
        padding: 1.5rem 0;
    }

    .page-hero-image {
        border: 3px solid white;
        max-height: 60vh;
    }
}


/* Sell Page Styles */
.sell-hero {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sell-content {
    padding: 5rem 0;
}

.sell-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.sell-intro h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

.market-analysis-section {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

.market-analysis-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-intro {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.market-analysis-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.selling-process {
    margin-bottom: 4rem;
}

.selling-process h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.step p {
    color: #7f8c8d;
    line-height: 1.6;
}

.testimonials {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    color: #3498db;
    font-weight: bold;
    font-style: normal !important;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .market-analysis-section {
        padding: 2rem 1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}


/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-full {
    padding: 5rem 0;
}

.about-intro-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-photo-large img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-intro-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.8;
    font-weight: 500;
}

.about-story {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-story > h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.story-section {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.story-section h3 {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.story-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #3498db;
}

.highlight-box h3 {
    color: #2c3e50;
}

.knowledge-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.knowledge-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.knowledge-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.3rem;
}

.credentials-section {
    margin-bottom: 4rem;
}

.credentials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.credential-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.credential-number {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.credential-label {
    color: #7f8c8d;
    font-size: 1rem;
}

.areas-served {
    margin-bottom: 4rem;
}

.areas-served h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.area-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.area-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.area-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-intro-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-intro-text h2 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .story-section {
        padding: 1.5rem;
    }

    .story-section h3 {
        font-size: 1.5rem;
    }

    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }
}


/* Agent Portal Styles */
.agent-portal-section {
    min-height: calc(100vh - 120px);
    padding: 8rem 2rem 4rem;
    background: #f8f9fa;
    flex: 1;
}

.portal-login {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.portal-login h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.login-form {
    margin-top: 2rem;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.error-message {
    color: red;
    margin-top: 1rem;
    min-height: 20px;
}

.portal-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.welcome-message {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.portal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-button {
    background: white;
    border: 2px solid #3498db;
    color: #2c3e50;
    padding: 2rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.action-button:hover {
    background: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.action-icon {
    font-size: 2rem;
}

.listing-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cancel-button {
    background: #95a5a6;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 1rem;
}

.cancel-button:hover {
    background: #7f8c8d;
}

.form-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.info-message {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.listing-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.listing-city {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.listing-price {
    font-size: 1.5rem;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.listing-details {
    color: #555;
    margin-bottom: 0.5rem;
}

.listing-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.status-active {
    background: #2ecc71;
    color: white;
}

.status-pending {
    background: #f39c12;
    color: white;
}

.status-sold {
    background: #95a5a6;
    color: white;
}

.listing-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.delete-button {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-button:hover {
    background: #c0392b;
}
