:root {
    --bg: #03130e;
    --surface: #0c3b31;
    --surface-2: #125448;
    --text: #edfbf4;
    --muted: #b5e8d8;
    --accent: #25d366;
    --accent-2: #0f7c61;
    --border: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 18% 20%, rgba(37, 211, 102, 0.18), transparent 16%),
                radial-gradient(circle at 82% 12%, rgba(18, 140, 126, 0.22), transparent 18%),
                linear-gradient(135deg, #02110d 0%, #061c15 40%, #0c3326 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.admin-page {
    background: linear-gradient(135deg, #02110d 0%, #0b3f34 100%);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    display: block;
    width: 100%;
}

/* Header & Navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    background: rgba(2, 25, 21, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand span {
    color: var(--accent);
}

.site-logo {
    width: 120px;
    height: auto;
    display: block;
}

.brand-text {
    display: inline-block;
    font-size: 1.2rem;
    color: #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #07150f !important;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Page Layout */
main {
    padding: 0 5%;
}

section {
    margin: 2rem 0;
    padding: 2rem 1.5rem;
}

.section {
    padding: 3.5rem 2rem;
}

.section-heading {
    margin-bottom: 1.8rem;
    max-width: 650px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    margin: 2rem 0;
    padding: 4.5rem 2rem 3rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.cta-section h2 {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text,
.section-heading p,
.about-copy p,
.cta-section p,
.property-content p,
.testimonial-card p {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ffd36e 100%);
    color: #07150f;
}

.btn-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.2rem;
    border-radius: 16px;
    min-width: 140px;
}

.hero-stats strong {
    display: block;
    font-size: 1.2rem;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-media img {
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-media img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

/* Partners */
.partners {
    margin: 1rem 0 2rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--muted);
}

/* Premium Search */
.premium-search {
    background: linear-gradient(135deg, rgba(18, 84, 72, 0.4) 0%, rgba(37, 211, 102, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
}

.search-tabs {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1.2rem;
}

.search-tab {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.search-tab:hover,
.search-tab.active {
    color: #ffffff;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #ffd36e 100%);
    border-radius: 2px;
}

.premium-search-form {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 0.95rem;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    padding: 1rem 2.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #ffd36e 100%);
    color: #07150f;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.search-filters select {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-filters select option {
    background-color: var(--surface);
    color: var(--text);
}

.search-filters select:hover,
.search-filters select:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    outline: none;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.quick-links a {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.quick-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: var(--accent);
}

/* Featured Listings & Features */
.listing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.listing-feature {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem;
}

.listing-feature h4 {
    margin: 0 0 0.4rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.listing-feature p {
    margin: 0.25rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.listing-feature strong {
    color: var(--accent);
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.property-grid > .swiper {
    grid-column: 1 / -1;
    width: 100%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.property-grid .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
}

.property-grid .swiper-pagination-bullet-active {
    background: var(--accent);
}

@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .property-grid .swiper {
        padding: 0.5rem 0 3rem;
    }

    .property-grid .swiper-button-next,
    .property-grid .swiper-button-prev {
        display: none;
    }

    .property-grid .swiper-pagination {
        bottom: 0.25rem !important;
    }
}

.property-card,
.testimonial-card,
.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.property-card {
    width: 100%;
}

.property-content {
    padding: 1.2rem 1.3rem 1.4rem;
}

.property-content h3,
.testimonial-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.property-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.4rem 0 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    color: #d0f7e3;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.property-status.for-rent {
    background: rgba(37, 142, 211, 0.12);
}

.property-status.for-sale {
    background: rgba(242, 182, 61, 0.12);
}

.property-card:hover,
.testimonial-card:hover,
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    border-color: rgba(242, 182, 61, 0.45);
}

.property-media-stack {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1rem 0;
}

.property-media-stack img,
.property-media-stack video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-weight: 600;
}

.property-meta a {
    color: var(--accent);
}

/* Swiper Controls */
.swiper {
    width: 100%;
    padding: 20px 0 60px;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next,
.swiper-button-prev {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.08);
}

.swiper-button-next img,
.swiper-button-prev img {
    width: 22px;
    height: 22px;
}

.swiper-pagination {
    bottom: 0 !important;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
}

.feature-list {
    margin-top: 1rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.feature-list li + li {
    margin-top: 0.6rem;
}

.about-card {
    padding: 1.5rem;
}

.about-card h3 {
    margin-bottom: 0.7rem;
}

/* Testimonials */
.testimonial-card {
    padding: 1.75rem;
}

.testimonial-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 0.9rem;
}

.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0.65rem 0 0.9rem;
}

.star-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("assets/star_icon.svg") center center no-repeat;
    background-size: contain;
}

.role {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(28, 139, 99, 0.2) 0%, rgba(242, 182, 61, 0.16) 100%);
}

.contact-copy {
    flex: 1;
}

.contact-details {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.contact-details p {
    color: var(--text);
}

.contact-details a {
    color: var(--accent);
    font-weight: 700;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a1f1b 0%, #051817 100%);
    padding: 3rem 5% 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1.2rem;
    text-transform: capitalize;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    text-align: left;
    flex: 1;
    min-width: 220px;
}

.footer-brand p {
    margin: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-brand p:first-child {
    color: var(--accent);
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a,
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    fill: #8BC34A;
}

.footer-social a:hover,
.social-link:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.footer-social img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-social a:hover img {
    opacity: 1;
}

/* Admin Panel Shell */
.admin-shell {
    padding: 2rem 0 3rem;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.admin-form textarea {
    resize: vertical;
    min-height: 110px;
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: 16px;
    cursor: pointer;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.upload-area input {
    display: none;
}

.form-feedback {
    min-height: 1.2rem;
    color: var(--accent);
    font-weight: 600;
}

.placeholder-media {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 14px;
    border: 1px dashed var(--border);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.admin-property-card {
    padding-bottom: 0.5rem;
}

.empty-state {
    padding: 1.2rem;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

/* Media Queries & Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 980px) {
    .hero,
    .about-section,
    .property-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .listing-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group input,
    .search-btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 5%;
        flex-direction: column;
        align-items: flex-start;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 1rem;
        display: none;
        min-width: 180px;
    }

    .nav-links.open {
        display: flex;
    }

    .partners,
    .cta-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-features,
    .property-grid,
    .testimonial-grid,
    .about-section {
        grid-template-columns: 1fr;
    }

    .search-tabs {
        gap: 1.5rem;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-input-group input,
    .search-btn {
        width: 100%;
    }

    .premium-search {
        padding: 1.5rem 1rem;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .footer-column a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        width: 100%;
    }
}