/* Reset y base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-secondary);
}

/* Variables CSS */
:root {
    /* Primary Colors - Pink/Magenta Palette */
    --primary-color: #c7119a;
    --primary-light: #e91e63;
    --primary-dark: #a50080;
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-500: #c7119a;
    --primary-600: #b5108a;
    --primary-700: #a50080;
    --primary-800: #9b1c8c;
    --primary-900: #831843;
    
    /* Secondary Colors - Warm Grays that complement pink */
    --secondary-color: #6b7280;
    --secondary-light: #9ca3af;
    --secondary-dark: #4b5563;
    
    /* Accent Colors - Professional Palette */
    --accent-color: #0891b2; /* Cyan for highlights */
    --accent-light: #06b6d4;
    --success-color: #059669; /* Emerald green */
    --success-light: #10b981;
    --warning-color: #d97706; /* Amber */
    --danger-color: #7c2d92; /* Purple to complement pink palette */
    --danger-light: #9333ea;
    
    /* Neutral Colors - Warmer grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background Colors */
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-light: #f3f4f6;
    --background-dark: #111827;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}


.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    border-bottom: 1px solid var(--gray-700);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: #f8fafc;
    text-decoration: none;
    transform: translateY(-1px);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(199, 17, 154, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-icon svg {
    color: #c7119a;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-icon {
    background: rgba(199, 17, 154, 0.2);
}

/* Company Logo Image Styles */
.company-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-link:hover .company-logo {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Navbar Logo Styles */
.navbar-logo {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    color: var(--gray-300);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.nav-item:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: rgba(199, 17, 154, 0.2);
    transform: translateY(-1px);
}

/* .nav-item.active {
    color: #ffffff !important;
    background-color: #4f46e5;
    text-decoration: none !important;
} */

/* .nav-item.admin-nav {
    background-color: #059669;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
}

.nav-item.admin-nav:hover {
    background-color: #047857;
    color: #ffffff !important;
    text-decoration: none !important;
}

.nav-item.admin-nav.active {
    background-color: #047857;
    color: #ffffff !important;
    text-decoration: none !important;
} */

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        height: 3.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .main-nav {
        gap: 1rem;
    }

    /* .nav-item {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    } */

    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }
}

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-50) 50%, var(--background-secondary) 100%);
    color: var(--text-primary);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(199, 17, 154, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(199, 17, 154, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-company-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    background: white;
    position: relative;
}

.hero-company-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-company-logo:hover::before {
    opacity: 1;
}

.hero-company-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 17, 154, 0.25);
    border-color: transparent;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Properties Section */
.properties-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--background-secondary) 0%, var(--background-primary) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filters Section */
.filters-container {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filters-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.filters-toggle {
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-toggle:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.filters-toggle-icon {
    transition: transform 0.3s ease;
}

.filters-toggle.collapsed .filters-toggle-icon {
    transform: rotate(180deg);
}

.filters-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 200px;
    opacity: 1;
}

.filters-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.filter-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    background: var(--background-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    height: 36px;
}

.filter-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(199, 17, 154, 0.1);
}

.filter-actions {
    display: flex;
    align-items: end;
    justify-content: center;
}

.btn-clear-filters {
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 36px;
}

.btn-clear-filters:hover {
    background: var(--gray-200);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.filter-results p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.loading, .no-properties {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.property-card {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(199, 17, 154, 0.3);
}

.property-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 1.5rem;
}

.property-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.property-location {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.property-location-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.property-zone {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.property-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(199, 17, 154, 0.05) 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(199, 17, 154, 0.1);
    transition: all 0.3s ease;
}

.detail:hover {
    background: linear-gradient(135deg, rgba(199, 17, 154, 0.1) 0%, rgba(199, 17, 154, 0.15) 100%);
    border-color: rgba(199, 17, 154, 0.2);
    transform: translateY(-1px);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.airbnb-link {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.airbnb-link:hover {
    background: var(--primary-dark);
    color: white;
}

/* Admin Styles */
.admin-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-actions {
    margin-bottom: 2rem;
}

/* Form Styles */
.property-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.property-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 17, 154, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--text-inverse);
    border: 1px solid var(--primary-700);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    color: var(--text-inverse);
    text-decoration: none;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: #7c2d92;
    color: white;
}

.btn-danger:hover {
    background: #6b1d7c;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Admin Properties Grid */
.properties-list h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.admin-properties-grid {
    display: grid;
    gap: 1rem;
}

.admin-property-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-property-card.inactive {
    opacity: 0.6;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.property-image-small {
    width: 100px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.property-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.property-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Star Rating Styles */
.property-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.property-rating .stars {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 1px;
}

.property-rating .rating-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Stars Preview in Form */
.stars-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid #ffc107;
}

.stars-preview .stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.stars-preview .rating-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Rating Update Buttons */
.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

/* Spinner Styles */
.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

.spinner-small {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid #f3f3f3;
    border-top: 1px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quick Edit Styles */
.quick-edit-price {
    margin: 0.75rem 0;
}

.quick-edit-price label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: block;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.currency {
    font-weight: 600;
    color: var(--success-color);
}

.price-input {
    width: 80px;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(199, 17, 154, 0.2);
}

.period {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.quick-edit-status {
    margin: 0.75rem 0;
}

/* Toggle Switch Styles */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]:checked + .slider {
    background-color: var(--success-color);
}

.toggle-switch input[type="checkbox"]:checked + .slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.toggle-switch input[type="checkbox"]:checked ~ .toggle-label {
    color: var(--success-color);
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-company-logo {
        width: 70px;
        height: 70px;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filters-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filters-header {
        margin-bottom: 0.75rem;
    }
    
    .filters-title {
        font-size: 1rem;
    }
    
    .filter-actions {
        justify-content: stretch;
    }
    
    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-property-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .property-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .airbnb-link {
        text-align: center;
    }
}

/* Error and Validation Styles */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success-color);
}

.invalid {
    outline: 1px solid var(--danger-color);
}

.validation-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Import Page Styles */
.import-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.import-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.import-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.import-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.import-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.import-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.import-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.import-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.url-input-section, .bulk-input-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.bulk-input-section {
    margin-top: 1.5rem;
}

.import-progress {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.progress-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.current-status {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
}

.import-results {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.import-results h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.result-summary {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.result-summary.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
}

.result-summary.error {
    background: rgba(124, 45, 146, 0.1);
    border: 1px solid var(--danger-color);
}

.result-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.result-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.stat.updated {
    background: rgba(199, 17, 154, 0.2);
    color: var(--primary-color);
}

.stat.skipped {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-color);
}

.stat.error {
    background: rgba(124, 45, 146, 0.2);
    color: var(--danger-color);
}

.added-properties h4, .updated-properties h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.properties-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.property-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-light);
}

.property-preview.updated {
    border-color: var(--primary-color);
    background: rgba(199, 17, 154, 0.05);
}

.property-preview img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.property-info {
    flex: 1;
    position: relative;
}

.updated-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-info h5 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.property-info p {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.import-errors {
    margin-top: 2rem;
}

.import-errors h4 {
    margin-bottom: 1rem;
    color: var(--danger-color);
}

.import-errors ul {
    background: rgba(124, 45, 146, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin: 0;
}

.import-errors li {
    color: var(--danger-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* File Upload Styles */
.file-upload-section {
    margin-bottom: 1.5rem;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--background-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
    justify-content: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(199, 17, 154, 0.05);
}

.file-input:focus + .file-upload-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 17, 154, 0.1);
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.upload-text {
    font-weight: 500;
    color: var(--text-secondary);
    flex-direction: column;
    display: flex;
    gap: 0.25rem;
}

.file-info {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.file-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-info p:last-child {
    margin-bottom: 0;
}

.file-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design for File Upload */
@media (max-width: 768px) {
    .file-upload-label {
        flex-direction: column;
        padding: 1rem;
        min-height: 100px;
    }
    
    .upload-text {
        text-align: center;
    }
}

/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--background-light) 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--background-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.auth-company-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.auth-company-logo:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(199, 17, 154, 0.2);
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background: rgba(124, 45, 146, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary-color);
}

/* Spinner for Loading States */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.user-greeting {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item.logout-nav {
    background-color: #6b7280;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.nav-item.logout-nav:hover {
    background-color: #4b5563;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Form Text Helper */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Auth Styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .user-greeting {
        font-size: 0.8rem;
    }
}

/* Auth Required Styles */
.auth-required {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-required-content {
    text-align: center;
    background: var(--background-primary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 500px;
}

.auth-required-content h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.auth-required-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Edit Property Page Styles */
.property-observations {
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-style: italic;
}

.property-observations small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.edit-property-container {
    min-height: 100vh;
    background: var(--background-secondary);
}

.edit-header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--gray-200);
    color: var(--text-primary);
    transform: translateX(-2px);
}

.header-title h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.property-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.error-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.edit-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background: var(--background-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(199, 17, 154, 0.1);
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    z-index: 1;
}

.price-input {
    padding-left: 2rem;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.form-help a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.image-preview {
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 300px;
}

.image-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-danger {
    background: #7c2d92;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #6b1d7c;
    transform: translateY(-1px);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.validation-message {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Edit Property */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .edit-form-container {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 400px;
    min-width: 300px;
}

.notification-show {
    transform: translateX(0);
}

.notification-hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-info {
    border-left: 4px solid var(--accent-color);
}

/* Hero Contact Section */
.hero-contact {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #25D366;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
}

.whatsapp-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.contact-info {
    display: none;
}

.contact-label {
    display: none;
}

.whatsapp-text {
    display: none;
}

.whatsapp-number {
    display: none;
}

/* Responsive adjustments for hero contact */
@media (max-width: 768px) {
    .hero-contact {
        margin-top: 1.25rem;
    }
    
    .whatsapp-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .whatsapp-icon {
        width: 1rem;
        height: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-contact {
        margin-top: 1rem;
    }
    
    .whatsapp-link {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    .whatsapp-icon {
        width: 0.9rem;
        height: 0.9rem;
    }
}

/* ============================================================================
   PROPERTY ORDERING SYSTEM STYLES
   ============================================================================ */

/* Reorder mode styles */
.admin-properties-grid.reorder-mode {
    gap: 0.75rem;
}

.admin-properties-grid.reorder-mode .admin-property-card {
    border: 2px solid var(--primary-200);
    transition: all 0.2s ease;
    position: relative;
}

.admin-property-card.reorder-card {
    padding-top: 3.5rem; /* Space for order controls */
}

/* Order controls */
.order-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.5rem 0.5rem 0 0;
    z-index: 10;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.order-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.order-buttons {
    display: flex;
    gap: 0.25rem;
}

.btn-order {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-order:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.btn-order:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-order:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-order-up:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.3); /* Green tint */
}

.btn-order-down:hover:not(:disabled) {
    background: rgba(245, 101, 101, 0.3); /* Red tint */
}

/* Reorder instructions */
.reorder-instructions {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border: 1px solid var(--primary-200);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.reorder-instructions p {
    margin: 0;
    color: var(--primary-700);
    font-weight: 500;
}

/* Button adjustments for reorder mode */
.admin-actions button {
    transition: all 0.2s ease;
}

.admin-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for order controls */
@media (max-width: 768px) {
    .admin-property-card.reorder-card {
        padding-top: 4rem; /* More space on mobile */
    }
    
    .order-controls {
        padding: 0.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .order-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .order-number {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .order-label {
        font-size: 0.75rem;
    }
    
    .btn-order {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        min-width: 1.8rem;
        height: 1.8rem;
    }
    
    .reorder-instructions {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .admin-properties-grid.reorder-mode {
        gap: 0.5rem;
    }
    
    .admin-property-card.reorder-card {
        padding-top: 3.5rem;
    }
    
    .order-controls {
        padding: 0.4rem;
    }
    
    .order-info {
        font-size: 0.8rem;
    }
    
    .btn-order {
        font-size: 0.75rem;
        min-width: 1.6rem;
        height: 1.6rem;
    }
    
    .reorder-instructions {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}
