/* Loomoi - Style CSS Production */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #FF3D00;
    --secondary: #00BFA5;
    --premium: #FFD700;
    --dark: #1A1A1A;
    --light: #FAFAFA;
    --gray: #E0E0E0;
    --text: #333;
    --border: #DADADA;
    --success: #4CAF50;
    --warning: #FF9800;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo img {
    height: 45px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 15px;
    font-family: 'DM Sans';
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 61, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--border);
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid white;
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 200;
}

.user-dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: var(--light);
}

button {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 61, 0, 0.3);
}

button.secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--dark);
}

button.secondary:hover {
    background: var(--dark);
    color: white;
}

button.small {
    padding: 8px 16px;
    font-size: 12px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #FF3D00 0%, #FF6E40 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.hero h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.95;
}

/* Filters */
.filters-section {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 73px;
    z-index: 90;
}

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 18px;
    background: var(--light);
    color: var(--text);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--dark);
    color: white;
}

.filter-input {
    font-family: 'DM Sans';
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    width: 110px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Listings */
.listings-section {
    padding: 28px 0 60px;
}

.listing-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    cursor: pointer;
    display: flex;
    gap: 18px;
    position: relative;
    transition: all 0.3s;
}

.listing-item.premium {
    border-color: var(--premium);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.listing-item:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: -4px 4px 0 var(--primary);
}

.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: white;
    border: 2px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}

.favorite-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.listing-photo {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.listing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), #FF6E40);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.listing-icon.service {
    background: linear-gradient(135deg, var(--secondary), #1DE9B6);
}

.listing-content {
    flex: 1;
    min-width: 0;
}

.listing-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.listing-type {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.listing-type.service {
    background: var(--secondary);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--premium), #FFA000);
    color: var(--dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.listing-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.listing-description {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.listing-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
    align-items: center;
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--warning);
}

.listing-price {
    font-family: 'Archivo Black', sans-serif;
    font-size: 20px;
    color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 14px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal.wide {
    max-width: 820px;
}

.modal-header {
    padding: 22px 26px 16px;
    border-bottom: 2px solid var(--border);
}

.modal-header h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 22px;
    color: var(--dark);
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--light);
    color: var(--dark);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    border: none;
}

.close-btn:hover {
    background: var(--dark);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 22px 26px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--dark);
}

input, textarea, select {
    font-family: 'DM Sans', sans-serif;
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 85px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Photos */
.photo-upload-section {
    background: var(--light);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.photo-upload-label {
    display: block;
    padding: 28px;
    border: 3px dashed var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: white;
}

.photo-upload-label:hover {
    border-color: var(--primary);
}

.photo-upload-label input {
    display: none;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 61, 0, 0.9);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.photo-carousel {
    position: relative;
    width: 100%;
    height: 360px;
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-nav.prev {
    left: 14px;
}

.carousel-nav.next {
    right: 14px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background: white;
    width: 18px;
    border-radius: 4px;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
    margin-bottom: 16px;
}

.thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Messages */
.messages-list {
    max-height: 340px;
    overflow-y: auto;
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
}

.message-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray);
    cursor: pointer;
}

.message-item:hover {
    background: var(--light);
}

.message-item.unread {
    background: rgba(255, 61, 0, 0.05);
    font-weight: 600;
}

.conversation {
    max-height: 320px;
    overflow-y: auto;
    background: var(--light);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.message-bubble {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    max-width: 70%;
}

.message-bubble.sent {
    margin-left: auto;
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.message-input-group {
    display: flex;
    gap: 10px;
}

.message-input-group input {
    flex: 1;
}

/* Reviews */
.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 22px;
}

.rating-stars span {
    cursor: pointer;
}

.rating-stars span:hover, .rating-stars span.active {
    color: var(--warning);
}

.reviews-list {
    margin-top: 16px;
}

.review-item {
    padding: 14px;
    background: var(--light);
    border-radius: 10px;
    margin-bottom: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.review-author {
    font-weight: 700;
    font-size: 14px;
}

.review-rating {
    color: var(--warning);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: white;
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 300;
    max-width: 320px;
}

.notification.error {
    border-color: var(--primary);
}

.notification-header {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 26px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Detail sections */
.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    background: var(--light);
    padding: 14px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.hidden {
    display: none !important;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .listing-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row, .info-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }
}