/* MCO Main Plugin Styles */

a.ast-custom-button-link {
    text-decoration: none !important;
}

/* General Styles */
.mco-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mco-breadcrumb {
    margin-left: 0px;
}

/* Card Styles */
.mco-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.mco-card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.mco-card-body {
    padding: 20px;
}

/* Form Styles */
.mco-form-group {
    margin-bottom: 20px;
}

.mco-form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.mco-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mco-form-control:focus {
    outline: none;
    border-color: #257CFF;
    box-shadow: 0 0 0 2px rgba(37,124,255,0.2);
}

.mco-form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Button Styles */
.mco-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mco-btn-primary {
    background: #257CFF;
    color: white;
}

.mco-btn-primary:hover {
    background: #1a5fd9;
    color: white;
}

.mco-btn-secondary {
    background: #F45A2A;
    color: white;
}

.mco-btn-secondary:hover {
    background: #d94a1f;
    color: white;
}

.mco-btn-success {
    background: #28a745;
    color: white;
}

.mco-btn-success:hover {
    background: #1e7e34;
    color: white;
}

.mco-btn-danger {
    background: #dc3545;
    color: white;
}

.mco-btn-danger:hover {
    background: #c82333;
    color: white;
}

.mco-btn-outline-primary {
    background: transparent;
    color: #257CFF;
    border: 1px solid #257CFF;
}

.mco-btn-outline-primary:hover {
    background: #257CFF;
    color: white;
}

.mco-btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.mco-btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* Workspace Grid */
.mco-workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mco-workspace-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mco-workspace-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mco-workspace-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mco-workspace-content {
    padding: 20px;
}

.mco-workspace-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.mco-workspace-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.mco-workspace-pricing {
    margin-bottom: 15px;
}

.mco-price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.mco-price-label {
    color: #666;
}

.mco-price-value {
    font-weight: 600;
    color: #257CFF;
}

.mco-workspace-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mco-workspace-actions .mco-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* Facility Tags */
.mco-facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.mco-facility-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Image Gallery */
.mco-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mco-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.mco-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mco-gallery-item:hover img {
    transform: scale(1.05);
}

/* Inquiry Form */
.mco-inquiry-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.mco-inquiry-form .mco-form-group {
    margin-bottom: 15px;
}

.mco-inquiry-form .mco-form-label {
    font-size: 14px;
    margin-bottom: 5px;
}

.mco-inquiry-form .mco-form-control {
    font-size: 14px;
    padding: 8px 12px;
}

/* Alert Styles */
.mco-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.mco-alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.mco-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.mco-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.mco-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Loading States */
.mco-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.mco-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #257CFF;
    border-radius: 50%;
    animation: mco-spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .mco-workspace-grid {
        grid-template-columns: 1fr;
    }
    
    .mco-workspace-actions {
        flex-direction: column;
    }
    
    .mco-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .mco-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .mco-workspace-content {
        padding: 15px;
    }
    
    .mco-workspace-title {
        font-size: 16px;
    }
    
    .mco-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Modal Styles */
.mco-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.mco-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

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

.mco-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.mco-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.mco-modal-close:hover {
    color: #333;
}

.mco-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* Breadcrumb Styles */
.mco-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
}

.mco-breadcrumb-item {
    display: flex;
    align-items: center;
}

.mco-breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #F45A2A;
}

.mco-breadcrumb-link {
    color: #257CFF;
    text-decoration: none;
}

.mco-breadcrumb-link:hover {
    text-decoration: underline;
}

.mco-breadcrumb-active {
    color: #F45A2A;
    font-weight: 500;
}

/* Search Form Styles */
.mco-search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mco-search-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.mco-search-form .form-select:focus {
    border-color: #257CFF;
    box-shadow: 0 0 0 0.2rem rgba(37, 124, 255, 0.25);
    outline: none;
}

.mco-search-form .btn-primary {
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #257CFF 0%, #1a5fd9 100%);
    border: none;
}

.mco-search-form .btn-primary:hover {
    background: linear-gradient(135deg, #1a5fd9 0%, #0f4bb3 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 124, 255, 0.3);
}

.mco-search-form .btn-primary:active {
    transform: translateY(0);
}

/* Hero Banner Search Form */
.hero-banner .mco-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.hero-banner .mco-search-form .form-select {
    background-color: #fff;
    border: 2px solid #fff;
}

.hero-banner .mco-search-form .form-select:focus {
    border-color: #257CFF;
    background-color: #fff;
}

/* Responsive Search Form */
@media (max-width: 768px) {
    .mco-search-form {
        padding: 20px;
        margin: 0 15px;
    }
    
    .mco-search-form .form-select,
    .mco-search-form .btn-primary {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .hero-banner .mco-search-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .mco-search-form {
        padding: 15px;
    }
    
    .mco-search-form .row {
        margin: 0;
    }
    
    .mco-search-form .col-md-8,
    .mco-search-form .col-md-4 {
        padding: 0;
        margin-bottom: 10px;
    }
    
    .mco-search-form .col-md-4:last-child {
        margin-bottom: 0;
    }
} 