/**
 * Imaging Booking Pro - Public Styles
 */

.ibp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ibp-services-container {
    margin: 30px 0;
}

.ibp-services-container.grid-view .ibp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ibp-services-container.list-view .ibp-services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ibp-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.ibp-service-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ibp-service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f4f6;
}

.ibp-service-content {
    padding: 20px;
}

.ibp-service-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1f2937;
}

.ibp-service-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 14px;
    color: #6b7280;
}

.ibp-service-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ibp-service-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.ibp-service-footer {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibp-price-display {
    font-size: 20px;
    font-weight: bold;
    color: #ff4c88;
}

.ibp-service-quick-book {
    padding: 8px 20px;
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ibp-service-quick-book:hover {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
}

.ibp-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 76, 136, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.ibp-filters-bar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.ibp-filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ibp-filter-select,
.ibp-sort-select {
    padding: 8px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

#ibp-search-services {
    flex: 1;
    min-width: 250px;
    padding: 8px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.ibp-view-toggle {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.ibp-view-toggle button {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ibp-view-toggle button:first-child {
    border-radius: 4px 0 0 4px;
}

.ibp-view-toggle button:last-child {
    border-radius: 0 4px 4px 0;
}

.ibp-view-toggle button.active {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border-color: transparent;
}

.ibp-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ibp-provider-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ibp-provider-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ibp-provider-header {
    padding: 20px;
    background: linear-gradient(135deg, #ff4c88 0%, #ff8a63 100%);
    color: white;
}

.ibp-provider-header h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.ibp-provider-type {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 12px;
    text-transform: uppercase;
}

.ibp-provider-body {
    padding: 20px;
}

.ibp-provider-info {
    margin: 10px 0;
    color: #4b5563;
    font-size: 14px;
}

.ibp-provider-info i {
    width: 20px;
    color: #9ca3af;
    margin-right: 8px;
}

.ibp-provider-rating {
    margin: 15px 0;
}

.ibp-star {
    color: #fbbf24;
    font-size: 18px;
}

.ibp-star.empty {
    color: #e5e7eb;
}

.ibp-provider-actions {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.ibp-provider-view-details,
.ibp-provider-book-now {
    flex: 1;
    padding: 8px 15px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.ibp-provider-view-details {
    border: 1px solid #ff4c88;
    color: #ff4c88;
    background: white;
}

.ibp-provider-view-details:hover {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
}

.ibp-provider-book-now {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border: 1px solid transparent;
}

.ibp-provider-book-now:hover {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    border-color: transparent;
}

.ibp-my-bookings {
    margin: 30px 0;
}

.ibp-bookings-table {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.ibp-bookings-table thead {
    background: #f9fafb;
}

.ibp-bookings-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.ibp-bookings-table td {
    padding: 12px 15px;
    color: #4b5563;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.ibp-bookings-table tbody tr:hover {
    background: #f9fafb;
}

.ibp-booking-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ibp-booking-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.ibp-booking-status.confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.ibp-booking-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.ibp-booking-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ibp-booking-actions {
    display: flex;
    gap: 8px;
}

.ibp-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ibp-btn-view {
    background: #6b7280;
    color: white;
}

.ibp-btn-reschedule {
    background: #3b82f6;
    color: white;
}

.ibp-btn-cancel {
    background: #ef4444;
    color: white;
}

.ibp-btn-review {
    background: #10b981;
    color: white;
}

.ibp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.ibp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    display: none;
}

.ibp-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ibp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.ibp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ibp-modal-close:hover {
    color: #1f2937;
}

.ibp-modal-body {
    padding: 20px;
}

.ibp-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

body.ibp-modal-open {
    overflow: hidden;
}

.ibp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    z-index: 10000;
    max-width: 350px;
    animation: ibp-slide-in 0.3s ease;
}

@keyframes ibp-slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.ibp-notification-success {
    background: #10b981;
    color: white;
}

.ibp-notification-error {
    background: #ef4444;
    color: white;
}

.ibp-notification-info {
    background: #3b82f6;
    color: white;
}

.ibp-notification-warning {
    background: #f59e0b;
    color: white;
}

.ibp-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    float: right;
    margin-left: 15px;
    line-height: 1;
}

.ibp-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
}

.ibp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #ff4c88;
    border-radius: 50%;
    animation: ibp-spin 1s linear infinite;
}

@keyframes ibp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ibp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
}

.ibp-pagination a {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ibp-pagination a:hover {
    background: #f9fafb;
    border-color: #ff4c88;
    color: #ff4c88;
}

.ibp-pagination a.active {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
    border-color: transparent;
}

.ibp-pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ibp-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin: 20px 0;
}

.ibp-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.ibp-accordion-item:last-child {
    border-bottom: none;
}

.ibp-accordion-header {
    padding: 15px 20px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.ibp-accordion-header:hover {
    background: #f3f4f6;
}

.ibp-accordion-header.active {
    background: linear-gradient(122.25deg, #ff4c88 12.16%, #ff8a63 70.98%);
    color: white;
}

.ibp-accordion-content {
    padding: 20px;
    display: none;
}

.ibp-tabs {
    margin: 30px 0;
}

.ibp-tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.ibp-tab-nav a {
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.ibp-tab-nav a:hover {
    color: #ff4c88;
}

.ibp-tab-nav a.active {
    color: #ff4c88;
    border-bottom-color: #ff4c88;
}

.ibp-tab-content {
    padding: 20px;
    display: none;
}

.ibp-tab-content.active {
    display: block;
}

.ibp-tooltip-box {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10001;
    white-space: nowrap;
    pointer-events: none;
}

.ibp-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}
h2.hndle {
    margin-left: 10px !important;
}

@media (max-width: 768px) {
    .ibp-services-container.grid-view .ibp-services-grid {
        grid-template-columns: 1fr;
    }
    
    .ibp-providers-grid {
        grid-template-columns: 1fr;
    }
    
    .ibp-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ibp-filter-select,
    .ibp-sort-select,
    #ibp-search-services {
        width: 100%;
    }
    
    .ibp-view-toggle {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    
    .ibp-modal {
        width: 95%;
    }
    
    .ibp-bookings-table {
        font-size: 12px;
    }
    
    .ibp-bookings-table th,
    .ibp-bookings-table td {
        padding: 8px 10px;
    }
    
    .ibp-booking-actions {
        flex-direction: column;
    }
}
/* =========================================================
   MY BOOKINGS  (3.0.0)
   Styles for templates/my-bookings.php, rendered by [my_bookings].
   ========================================================= */

.ibp-my-bookings {
    --ibp-mb-ink: #111827;
    --ibp-mb-body: #374151;
    --ibp-mb-muted: #6b7280;
    --ibp-mb-line: #e5e7eb;
    --ibp-mb-surface: #fff;
    --ibp-mb-raised: #fafbfc;
    --ibp-mb-brand: #4f46e5;

    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 40px;
    color: var(--ibp-mb-body);
    font-size: 16px;
    line-height: 1.55;
}

.ibp-mb-header { margin-bottom: 26px; }

.ibp-mb-header h2 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ibp-mb-ink);
}

.ibp-mb-header p { margin: 0; color: var(--ibp-mb-muted); font-size: 15px; }

.ibp-mb-section { margin-bottom: 32px; }

.ibp-mb-section__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ibp-mb-muted);
}

.ibp-mb-list { display: flex; flex-direction: column; gap: 14px; }
.ibp-mb-list--muted .ibp-mb-card { opacity: .78; }
.ibp-mb-list--muted .ibp-mb-card:hover { opacity: 1; }

.ibp-mb-card {
    background: var(--ibp-mb-surface);
    border: 1px solid var(--ibp-mb-line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .07);
    transition: box-shadow .18s, opacity .18s;
}

.ibp-mb-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .09); }

.ibp-mb-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f2f4;
}

.ibp-mb-card__date {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e0e7ff;
}

.ibp-mb-card__day {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--ibp-mb-brand);
}

.ibp-mb-card__month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ibp-mb-muted);
    margin-top: 2px;
}

.ibp-mb-card__title { flex: 1; min-width: 0; }

.ibp-mb-card__title h3 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 650;
    color: var(--ibp-mb-ink);
    line-height: 1.3;
}

.ibp-mb-card__title p { margin: 0; font-size: 14px; color: var(--ibp-mb-muted); }

.ibp-mb-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ibp-mb-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ibp-mb-badge--success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.ibp-mb-badge--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.ibp-mb-badge--danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ibp-mb-badge--info    { background: #f0f9ff; color: #075985; border-color: #bae6fd; }
.ibp-mb-badge--purple  { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.ibp-mb-badge--neutral { background: #f1f2f4; color: #374151; border-color: #e5e7eb; }

.ibp-mb-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 20px;
    margin: 14px 0 0;
}

.ibp-mb-card__meta dt {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ibp-mb-muted);
}

.ibp-mb-card__meta dd {
    margin: 0;
    font-size: 15px;
    color: var(--ibp-mb-ink);
    font-weight: 550;
    word-break: break-word;
}

.ibp-mb-card__meta code {
    font-size: 13px;
    background: #f1f2f4;
    border: 1px solid var(--ibp-mb-line);
    border-radius: 6px;
    padding: 2px 6px;
}

.ibp-mb-card__note {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: var(--ibp-mb-raised);
    border-left: 3px solid var(--ibp-mb-line);
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--ibp-mb-muted);
}

.ibp-mb-empty {
    padding: 48px 20px;
    text-align: center;
    background: var(--ibp-mb-raised);
    border: 1px dashed var(--ibp-mb-line);
    border-radius: 14px;
    color: var(--ibp-mb-muted);
}

.ibp-mb-empty p { margin: 0; }

@media (max-width: 600px) {
    .ibp-mb-card__head { flex-wrap: wrap; }
    .ibp-mb-badge { order: 3; width: 100%; justify-content: center; }
    .ibp-mb-card__meta { grid-template-columns: 1fr 1fr; }
}

@media print {
    .ibp-mb-card { break-inside: avoid; box-shadow: none; }
}
