/* ============================================
   PROPERTIES COMPONENTS - STYLES
   Coerente con dashboard.css
   ============================================ */

/* ============================================
   PAGE HEADER
   ============================================ */

.properties-page-header {
    background: linear-gradient(135deg, var(--gradient-start, #f97316) 0%, var(--gradient-end, #ea580c) 100%);
    padding: 2rem;
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 0 0 1rem 1rem;
    position: relative;
    overflow: hidden;
}

.properties-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

.properties-page-header h1 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.properties-page-header h1 i {
    font-size: 1.5rem;
}

.properties-page-header p {
    color: rgba(255,255,255,0.9);
    margin: 0.5rem 0 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   PROPERTY LIST WRAPPER
   ============================================ */

.property-list-wrapper {
    background: var(--white, #ffffff);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.property-list-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100, #f4f4f5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50, #fafafa);
}

.property-list-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800, #27272a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.property-list-header h2 i {
    color: var(--primary-orange, #f97316);
}

.property-list-body {
    padding: 1.5rem;
}

/* ============================================
   BLAZORISE DATAGRID OVERRIDE
   ============================================ */

.property-list-wrapper .table {
    border-collapse: separate;
    border-spacing: 0;
}

.property-list-wrapper .table thead th {
    background: linear-gradient(135deg, var(--gradient-start, #f97316) 0%, var(--gradient-end, #ea580c) 100%);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.property-list-wrapper .table thead th:first-child {
    border-radius: 0.5rem 0 0 0;
}

.property-list-wrapper .table thead th:last-child {
    border-radius: 0 0.5rem 0 0;
}

.property-list-wrapper .table tbody tr {
    transition: all 0.2s ease;
}

.property-list-wrapper .table tbody tr:hover {
    background: var(--primary-orange-light, #fed7aa) !important;
}

.property-list-wrapper .table tbody tr.table-row-selected,
.property-list-wrapper .table tbody tr.selected {
    background: var(--primary-orange-light, #fed7aa) !important;
    border-left: 4px solid var(--primary-orange, #f97316);
}

.property-list-wrapper .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100, #f4f4f5);
    vertical-align: middle;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.property-list-wrapper .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.property-list-wrapper .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.property-list-wrapper .btn-primary {
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.property-list-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.property-list-wrapper .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.property-list-wrapper .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ============================================
   PROPERTY DETAILS CARD (Jumbotron replacement)
   ============================================ */

.property-details-card {
    background: var(--white, #ffffff);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    margin-top: 2rem;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-details-header {
    background: linear-gradient(135deg, var(--gray-800, #27272a) 0%, var(--gray-900, #18181b) 100%);
    padding: 1.5rem;
    color: white;
}

.property-details-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.property-details-header h3::before {
    content: '';
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    border-radius: 2px;
}

.property-details-subtitle {
    color: var(--gray-400, #a1a1aa);
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-details-subtitle i {
    color: var(--primary-orange, #f97316);
}

.property-details-body {
    padding: 0;
}

/* ============================================
   TABS STYLING
   ============================================ */

.property-details-card .nav-tabs,
.property-details-card .tabs-items {
    background: var(--gray-50, #fafafa);
    border-bottom: 1px solid var(--gray-200, #e4e4e7);
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.property-details-card .nav-tabs .nav-link,
.property-details-card .tabs-items .tab {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-500, #71717a);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    cursor: pointer;
}

.property-details-card .nav-tabs .nav-link:hover,
.property-details-card .tabs-items .tab:hover {
    color: var(--primary-orange, #f97316);
    background: rgba(249, 115, 22, 0.05);
}

.property-details-card .nav-tabs .nav-link.active,
.property-details-card .tabs-items .tab.active {
    color: var(--primary-orange, #f97316);
    border-bottom-color: var(--primary-orange, #f97316);
    background: white;
}

.property-details-card .nav-tabs .nav-link i,
.property-details-card .tabs-items .tab i {
    font-size: 1rem;
}

.property-details-card .tab-content,
.property-details-card .tabs-content {
    padding: 1.5rem;
}

/* ============================================
   MODAL STYLING
   ============================================ */

.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--gradient-start, #f97316) 0%, var(--gradient-end, #ea580c) 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .divider {
    margin: 1.5rem 0;
    border-color: var(--gray-200, #e4e4e7);
}

.modal-body .divider-text-content {
    background: var(--gray-50, #fafafa);
    color: var(--gray-600, #52525b);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   FORM FIELDS IN MODAL
   ============================================ */

.modal-body .field-label label {
    font-weight: 500;
    color: var(--gray-700, #3f3f46);
    font-size: 0.875rem;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="password"],
.modal-body select {
    border: 1px solid var(--gray-300, #d4d4d8);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body input:focus,
.modal-body select:focus {
    border-color: var(--primary-orange, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    outline: none;
}

/* ============================================
   ALERT STYLING
   ============================================ */

.modal-body .alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-body .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.modal-body .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.modal-body .alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* ============================================
   SAVE/CANCEL BUTTONS
   ============================================ */

.modal-body .btn-lg {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-body .btn-lg.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    border: none;
}

.modal-body .btn-lg.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.modal-body .btn-lg.btn-secondary {
    background: var(--gray-200, #e4e4e7);
    border: none;
    color: var(--gray-700, #3f3f46);
}

.modal-body .btn-lg.btn-secondary:hover {
    background: var(--gray-300, #d4d4d8);
}

/* ============================================
   COLOR PICKER STYLING
   ============================================ */

.property-list-wrapper .color-picker,
.modal-body .color-picker {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.property-list-wrapper .pagination {
    margin-top: 1.5rem;
    gap: 0.25rem;
}

.property-list-wrapper .pagination .page-link {
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    color: var(--gray-600, #52525b);
    transition: all 0.2s ease;
}

.property-list-wrapper .pagination .page-link:hover {
    background: var(--primary-orange-light, #fed7aa);
    color: var(--primary-orange-dark, #ea580c);
}

.property-list-wrapper .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    color: white;
}

/* ============================================
   JUMBOTRON OVERRIDE (Blazorise)
   ============================================ */

.jumbotron {
    background: var(--white, #ffffff) !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
    padding: 0 !important;
    overflow: hidden;
}

.jumbotron .jumbotron-title {
    background: linear-gradient(135deg, var(--gray-800, #27272a) 0%, var(--gray-900, #18181b) 100%);
    color: white !important;
    padding: 1.25rem 1.5rem !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.jumbotron .jumbotron-title::before {
    content: '\f1ad';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-orange, #f97316);
}

.jumbotron .jumbotron-subtitle {
    background: var(--gray-800, #27272a);
    color: var(--gray-400, #a1a1aa) !important;
    padding: 0 1.5rem 1.25rem !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jumbotron .jumbotron-subtitle::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-orange, #f97316);
    font-size: 0.875rem;
}

.jumbotron > .divider:first-of-type {
    display: none;
}

.jumbotron > p {
    padding: 0;
    margin: 0;
}

/* ============================================
   BLAZORISE TABS OVERRIDE
   ============================================ */

.jumbotron .tabs .tabs-items {
    background: var(--gray-50, #fafafa);
    border-bottom: 1px solid var(--gray-200, #e4e4e7);
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.jumbotron .tabs .tabs-items .tab-item {
    margin: 0;
}

.jumbotron .tabs .tabs-items .tab-item .tab-link {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-500, #71717a);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.jumbotron .tabs .tabs-items .tab-item .tab-link:hover {
    color: var(--primary-orange, #f97316);
    background: rgba(249, 115, 22, 0.05);
}

.jumbotron .tabs .tabs-items .tab-item.active .tab-link,
.jumbotron .tabs .tabs-items .tab-item .tab-link.active {
    color: var(--primary-orange, #f97316);
    border-bottom-color: var(--primary-orange, #f97316);
    background: white;
}

.jumbotron .tabs .tabs-content {
    padding: 1.5rem;
}

.jumbotron .tabs .tabs-content .tab-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .properties-page-header {
        padding: 1.5rem 1rem;
        margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    }
    
    .properties-page-header h1 {
        font-size: 1.25rem;
    }
    
    .property-list-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .property-list-body {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .jumbotron .tabs .tabs-items {
        flex-wrap: wrap;
    }
    
    .jumbotron .tabs .tabs-items .tab-item .tab-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal-body .field {
        flex-direction: column;
    }
    
    .modal-body .field-label,
    .modal-body .field-body {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}

/* ============================================
   DATAGRID WRAPPER
   ============================================ */

.property-datagrid-wrapper {
    width: 100%;
}

.property-datagrid {
    width: 100% !important;
}

.color-indicator {
    transition: transform 0.2s ease;
}

.color-indicator:hover {
    transform: scale(1.1);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-action {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
}

.btn-add-new {
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
}

/* ============================================
   DETAILED LIST VIEW STYLES
   ============================================ */

.header-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.header-stat {
    text-align: center;
}

.header-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.header-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white, #ffffff);
    border-radius: 1rem;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--gray-50, #fafafa);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200, #e4e4e7);
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-box i {
    color: var(--gray-400, #a1a1aa);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.875rem;
    color: var(--gray-700, #3f3f46);
}

.search-input::placeholder {
    color: var(--gray-400, #a1a1aa);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200, #e4e4e7);
    background: var(--white, #ffffff);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600, #52525b);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-orange, #f97316);
    color: var(--primary-orange, #f97316);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    color: white;
    border-color: transparent;
}

.btn-add-property {
    margin-left: auto;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-property:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Properties Grid */
.properties-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* Loading */
.loading-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500, #71717a);
}

.loading-spinner {
    font-size: 2.5rem;
    color: var(--primary-orange, #f97316);
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-100, #f4f4f5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: var(--gray-400, #a1a1aa);
}

.empty-state-container h3 {
    color: var(--gray-700, #3f3f46);
    margin-bottom: 0.5rem;
}

.empty-state-container p {
    color: var(--gray-500, #71717a);
    margin-bottom: 1.5rem;
}

.btn-add-property-large {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-property-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    color: white;
}

/* Property Detail Card */
.property-detail-card {
    background: var(--white, #ffffff);
    border-radius: 1rem;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.property-detail-card:hover {
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgb(0 0 0 / 0.1));
    transform: translateY(-4px);
}

/* Card Header */
.property-card-header {
    position: relative;
    padding: 1.25rem 1.5rem;
    padding-left: 1.75rem;
}

.property-color-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.property-main-info {
    margin-bottom: 0.75rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800, #27272a);
    margin: 0 0 0.25rem;
}

.property-location {
    font-size: 0.875rem;
    color: var(--gray-500, #71717a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i {
    color: var(--primary-orange, #f97316);
}

.property-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.badge-checkin {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-checkout {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-upcoming {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Card Body */
.property-card-body {
    padding: 0 1.5rem 1.25rem;
}

/* Stats Mini Grid */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50, #fafafa);
    border-radius: 0.75rem;
}

.stat-mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-mini-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-mini-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-mini-icon.gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-mini-content {
    display: flex;
    flex-direction: column;
}

.stat-mini-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800, #27272a);
    line-height: 1;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--gray-500, #71717a);
    margin-top: 0.125rem;
}

/* Occupancy Section */
.occupancy-section {
    background: var(--gray-50, #fafafa);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.occupancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.occupancy-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600, #52525b);
}

.occupancy-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-800, #27272a);
}

.occupancy-bar {
    height: 8px;
    background: var(--gray-200, #e4e4e7);
    border-radius: 9999px;
    overflow: hidden;
}

.occupancy-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.occupancy-fill.high {
    background: linear-gradient(90deg, #10b981, #059669);
}

.occupancy-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.occupancy-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.occupancy-details {
    margin-top: 0.375rem;
}

.nights-count {
    font-size: 0.75rem;
    color: var(--gray-500, #71717a);
}

/* Next Booking */
.next-booking-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.05));
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-orange, #f97316);
}

.next-booking-label {
    font-size: 0.75rem;
    color: var(--gray-600, #52525b);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.next-booking-label i {
    color: var(--primary-orange, #f97316);
}

.next-booking-info {
    text-align: right;
}

.next-guest-name {
    display: block;
    font-weight: 600;
    color: var(--gray-800, #27272a);
    font-size: 0.875rem;
}

.next-date {
    font-size: 0.75rem;
    color: var(--gray-500, #71717a);
}

.next-date.today {
    color: #059669;
    font-weight: 600;
}

/* Config Status */
.config-status {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100, #f4f4f5);
}

.config-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--gray-100, #f4f4f5);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500, #71717a);
}

.config-item i {
    font-size: 0.875rem;
}

.config-item.configured {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.config-count {
    font-weight: 600;
}

/* Card Footer */
.property-card-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50, #fafafa);
    border-top: 1px solid var(--gray-100, #f4f4f5);
}

.btn-card-action {
    flex: 1;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.btn-card-action.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start, #f97316), var(--gradient-end, #ea580c));
    color: white;
}

.btn-card-action.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-card-action.btn-secondary {
    background: var(--gray-200, #e4e4e7);
    color: var(--gray-700, #3f3f46);
}

.btn-card-action.btn-secondary:hover {
    background: var(--gray-300, #d4d4d8);
}

.btn-card-action.btn-tertiary {
    background: transparent;
    color: var(--gray-600, #52525b);
    border: 1px solid var(--gray-200, #e4e4e7);
}

.btn-card-action.btn-tertiary:hover {
    border-color: var(--primary-orange, #f97316);
    color: var(--primary-orange, #f97316);
}

/* Error message */
.error-message {
    color: #dc2626;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-add-property {
        margin-left: 0;
        justify-content: center;
    }
    
    .properties-detailed-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .property-card-footer {
        flex-direction: column;
    }
}
