/**
 * UL Mobile Home Parks - Styles
 * Powder blue theme matching Underground Landlord site
 */

/* ========================================
   GLOBAL & LAYOUT
======================================== */

.ul-mhp-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   HEADER CARD (Powder Blue)
======================================== */

.ul-mhp-header-card {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f0fb 60%, #cfe8f8 100%);
    border: 1px solid #b6d9f5;
    border-radius: 12px;
    padding: 32px 32px 28px;
    margin-bottom: 24px;
}

.ul-mhp-header-card h1 {
    color: #1e3a5f;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.ul-mhp-subtitle {
    color: #5b8ab5;
    font-size: 15px;
    margin: 0 0 24px 0;
}

.ul-mhp-header-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
======================================== */

.ul-mhp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 24px;
    border: 1.5px solid #b6d9f5;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
    color: #1e3a5f;
}

.ul-mhp-btn:hover {
    background: #eef6ff;
    border-color: #7bbce6;
    text-decoration: none;
    color: #1e3a5f;
}

.ul-mhp-btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ul-mhp-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
}

.ul-mhp-btn-secondary {
    background: white;
    color: #1e3a5f;
    border: 1.5px solid #b6d9f5;
}

.ul-mhp-btn-secondary:hover {
    background: #eef6ff;
    border-color: #7bbce6;
}

.ul-mhp-btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ========================================
   PARK CARDS
======================================== */

.ul-mhp-park-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.ul-mhp-park-card {
    background: white;
    border: 1px solid #d4e8f7;
    border-radius: 12px;
    padding: 24px 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ul-mhp-park-card:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.ul-mhp-park-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ul-mhp-park-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
}

.ul-mhp-park-address {
    color: #5b8ab5;
    font-size: 14px;
    margin-bottom: 16px;
}

.ul-mhp-park-address::before {
    content: '📍 ';
    font-size: 13px;
}

.ul-mhp-park-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    padding: 14px 0;
    border-top: 1px solid #e8f1f8;
    flex-wrap: wrap;
}

.ul-mhp-park-stat {
    text-align: center;
    min-width: 70px;
}

.ul-mhp-park-stat .label {
    display: block;
    color: #7ba3c4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.ul-mhp-park-stat .value {
    display: block;
    color: #1e3a5f;
    font-size: 18px;
    font-weight: 700;
}

.ul-mhp-park-card-actions {
    padding-top: 14px;
    border-top: 1px solid #e8f1f8;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   BADGES
======================================== */

.ul-mhp-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ul-mhp-badge-active {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ul-mhp-badge-premium {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fef3c7;
    color: #92400e;
}

/* ========================================
   EMPTY STATE
======================================== */

.ul-mhp-empty-state {
    text-align: center;
    padding: 64px 24px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 2px dashed #b6d9f5;
    grid-column: 1 / -1;
}

.ul-mhp-empty-state h2 {
    color: #1e3a5f;
    margin-bottom: 12px;
}

.ul-mhp-empty-state p {
    color: #5b8ab5;
    margin-bottom: 24px;
}

/* ========================================
   PARK DETAIL HEADER
======================================== */

.ul-mhp-detail-header {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f0fb 60%, #cfe8f8 100%);
    border: 1px solid #b6d9f5;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ul-mhp-detail-header h1 {
    margin: 8px 0;
    font-size: 26px;
    font-weight: 600;
    color: #1e3a5f;
}

.ul-mhp-back-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.ul-mhp-back-link:hover {
    text-decoration: underline;
}

/* ========================================
   TABS
======================================== */

.ul-mhp-tabs {
    display: flex;
    gap: 4px;
    background: #eef6ff;
    padding: 4px;
    border-radius: 24px;
    margin-bottom: 24px;
    overflow-x: auto;
    border: 1px solid #d4e8f7;
}

.ul-mhp-tab {
    position: relative;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #5b8ab5;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ul-mhp-tab:hover {
    background: white;
    color: #1e3a5f;
}

.ul-mhp-tab.active {
    background: white;
    color: #1e3a5f;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.ul-mhp-tab-panel {
    display: none;
    background: white;
    border: 1px solid #d4e8f7;
    border-radius: 12px;
    padding: 24px;
}

.ul-mhp-tab-panel.active {
    display: block;
}

.ul-mhp-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8f1f8;
}

.ul-mhp-panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
}

/* ========================================
   LOT GRID
======================================== */

.ul-mhp-lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.ul-mhp-lot-card {
    background: white;
    border: 1px solid #d4e8f7;
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.ul-mhp-lot-card:hover {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.ul-mhp-lot-card.vacant {
    border-left: 4px solid #fbbf24;
}

.ul-mhp-lot-card.occupied {
    border-left: 4px solid #22c55e;
}

/* ========================================
   FORMS
======================================== */

.ul-mhp-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ul-mhp-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ul-mhp-form-group-full {
    flex: 100%;
}

.ul-mhp-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.ul-mhp-form-group input,
.ul-mhp-form-group select,
.ul-mhp-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    transition: border-color 0.2s;
}

.ul-mhp-form-group input:focus,
.ul-mhp-form-group select:focus,
.ul-mhp-form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================
   MODALS
======================================== */

.ul-mhp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    overflow-y: auto;
}

.ul-mhp-modal.active {
    display: flex;
}

.ul-mhp-modal-content {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.ul-mhp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.ul-mhp-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
}

.ul-mhp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.ul-mhp-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.ul-mhp-modal-body {
    padding: 24px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.ul-mhp-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* ========================================
   NOTIFICATION
======================================== */

.ul-mhp-notification {
    display: none;
    position: fixed;
    top: 32px;
    right: 32px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    z-index: 100001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.ul-mhp-notification.success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ul-mhp-notification.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ========================================
   ADMIN PAGE
======================================== */

.ul-mhp-admin-container {
    /* Container is transparent - only header is dark */
}

.ul-mhp-admin-header {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.ul-mhp-admin-header h1 {
    color: #AADDFF;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.ul-mhp-admin-section {
    background: white;
    border: 1px solid #d4e8f7;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.ul-mhp-admin-section:last-child {
    margin-bottom: 0;
}

.ul-mhp-premium-section {
    background: white;
    border: 1px solid #d4e8f7;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.ul-mhp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ul-mhp-section-header h2 {
    color: #1e3a5f;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ========================================
   UPGRADE SECTION
======================================== */

.ul-mhp-upgrade-section {
    margin-top: 24px;
}

.ul-mhp-upgrade-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}

.ul-mhp-upgrade-card h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: #1e293b;
}

.ul-mhp-upgrade-card > p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #78350f;
}

.ul-mhp-upgrade-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: inline-block;
    text-align: left;
}

.ul-mhp-upgrade-list li {
    padding: 6px 0;
    font-size: 15px;
    color: #92400e;
}

.ul-mhp-btn-upgrade {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.ul-mhp-btn-upgrade:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .ul-mhp-wrapper {
        padding: 16px;
    }
    
    .ul-mhp-header-card {
        padding: 20px;
    }
    
    .ul-mhp-header-card h1 {
        font-size: 22px;
    }
    
    .ul-mhp-park-grid {
        grid-template-columns: 1fr;
    }
    
    .ul-mhp-lot-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ul-mhp-detail-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .ul-mhp-form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .ul-mhp-modal-content {
        width: 98%;
    }
    
    .ul-mhp-admin-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .ul-mhp-upgrade-card {
        padding: 32px 20px;
    }
}

/* ========================================
   HELP DRAWER
======================================== */
#ul-mhp-help-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.4);z-index:99998;display:none;} 
#ul-mhp-help-overlay.open{display:block;}
#ul-mhp-help-drawer{position:fixed!important;top:0;right:-520px;width:500px;max-width:92vw;height:100vh;background:#fff;z-index:99999!important;box-shadow:-4px 0 20px rgba(0,0,0,0.15);transition:right 0.3s ease;display:flex!important;flex-direction:column;overflow:hidden;}
#ul-mhp-help-drawer.open{right:0;}
.ul-mhp-help-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:linear-gradient(135deg,#1a3a4a 0%,#0f2736 100%);color:#fff;flex-shrink:0;}
.ul-mhp-help-header h2{margin:0;font-size:16px;color:#fff;}
.ul-mhp-help-header p{margin:2px 0 0;font-size:11px;color:rgba(170,221,255,0.7);}
.ul-mhp-help-close{background:none;border:none;color:#fff;font-size:24px;cursor:pointer;padding:0 4px;line-height:1;}
.ul-mhp-help-body{display:flex;flex:1;overflow:hidden;}
.ul-mhp-help-nav{width:180px;background:#f8fafc;border-right:1px solid #e2e8f0;overflow-y:auto;flex-shrink:0;padding:8px 0;}
.ul-mhp-help-nav-item{display:block;width:100%;text-align:left;padding:10px 16px;border:none;background:none;cursor:pointer;font-size:13px;color:#475569;transition:all 0.15s;}
.ul-mhp-help-nav-item:hover{background:#e2e8f0;}
.ul-mhp-help-nav-item.active{background:#fff;color:#1a3a4a;font-weight:700;border-right:3px solid #AADDFF;}
.ul-mhp-help-content{flex:1;overflow-y:auto;padding:20px;}
.ul-mhp-help-topic{display:none;}
.ul-mhp-help-topic.active{display:block;}
.ul-mhp-help-topic h3{margin:0 0 16px;font-size:18px;color:#1a3a4a;}
.ul-mhp-help-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;margin-bottom:12px;}
.ul-mhp-help-card h4{margin:0 0 8px;font-size:14px;color:#1a3a4a;}
.ul-mhp-help-card p,.ul-mhp-help-card li{font-size:13px;color:#475569;line-height:1.5;}
.ul-mhp-help-tip{background:#f0f7ff;border:1px solid #bde0fe;border-radius:8px;padding:12px 16px;margin-top:12px;font-size:13px;color:#1a3a4a;}
@media(max-width:600px){.ul-mhp-help-nav{width:120px;}.ul-mhp-help-nav-item{font-size:11px;padding:8px 10px;}}
