/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.logo-img {
    display: none;
}



.desktop-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
}

.desktop-nav a:hover:not(.btn) {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 53, 128, 0.7), rgba(0, 53, 128, 0.2));
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Search Bar */
.search-bar-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select,
.filter-group input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.25rem 0;
    outline: none;
}

.filter-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border);
}

.btn-search {
    height: 56px;
    padding: 0 2rem;
    font-size: 1.1rem;
}

/* Property Cards */
.section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sort-select {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    background-color: var(--white);
    transition: var(--transition-base);
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23003580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.sort-select:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.sort-select.glass {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

/* Featured property cards */
.property-card.featured-card {
    border: 2px solid var(--secondary);
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.15);
    position: relative;
}

.property-card.featured-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--secondary), #ff6b00);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

.property-card.featured-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(255, 149, 0, 0.25);
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-available {
    background: var(--success);
    color: var(--white);
}

.badge-booked {
    background: var(--danger);
    color: var(--white);
}

.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.property-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--surface);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.region-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.region-card:hover img {
    transform: scale(1.05);
}

.region-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    text-align: left;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: rgba(0, 53, 128, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: #001730;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 90vh;
        height: 90svh;
        min-height: 600px;
        padding-top: var(--header-height);
        display: flex;
        align-items: center;
        padding-bottom: 0;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 53, 128, 0.6) 0%, rgba(0, 53, 128, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    }

    .search-bar-container {
        padding: 1rem;
        margin-top: 1rem;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-group {
        gap: 0.25rem;
    }

    .filter-group label {
        font-size: 0.75rem;
    }

    .filter-divider {
        display: none;
    }

    .btn-search {
        width: 100%;
        height: 48px;
        margin-top: 0.5rem;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Shimmer Loading Effect */
.loading-shimmer {
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ── Badge styles ── */
.badge-featured {
    background: linear-gradient(135deg, var(--secondary), #ff6b00);
    color: var(--white);
}

.status-approved {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-hidden {
    background: #f1f5f9;
    color: #475569;
}

/* ── Visibility Toggles ── */
.visibility-toggles {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ────────────────────────────────────────────────
   MOBILE RESPONSIVENESS
──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .sort-select {
        width: 100%;
    }

    .regions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .region-card {
        height: 220px;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .property-slider {
        height: 260px;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }

    .price-big {
        font-size: 2rem;
    }

    .property-title-main {
        font-size: 1.75rem;
    }
}

/* ── Mobile header actions row ── */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-header-actions {
        display: flex;
    }
}

/* User / pricing icon button */
.pricing-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}

.pricing-icon-btn:hover {
    background: rgba(0, 53, 128, 0.08);
    transform: scale(1.1);
}

/* Owner link inside mobile nav (styled, not a big block button) */
.mobile-owner-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--primary) !important;
    padding: 0.5rem 0;
}

.mobile-owner-link:hover {
    color: var(--accent) !important;
}

/* ── Pricing Backdrop ── */
.pricing-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.pricing-backdrop.active {
    display: block;
}

/* ── Pricing Bottom Sheet ── */
.pricing-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 3001;
    padding: 0 1.25rem 2rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(110%);
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}

.pricing-sheet.open {
    transform: translateY(0);
}

/* Drag handle */
.pricing-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    margin: 0.875rem auto 0.5rem;
}

/* Header */
.pricing-sheet-header {
    position: relative;
    text-align: center;
    padding: 1rem 0 0.5rem;
    margin-bottom: 1rem;
}

.pricing-sheet-header h2 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
}

.pricing-sheet-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.pricing-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s;
}

.pricing-close-btn:hover {
    background: #e2e8f0;
}

/* Cards */
.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pricing-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
}

.pricing-card.featured-plan {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.plan-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.plan-info strong {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
}

.plan-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.plan-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    text-align: right;
}

.plan-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
}

/* CTA */
.pricing-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}