/* ===== LISTING SHOW PAGE STYLES ===== */
/* Author: Gun Dogs Market Team */
/* Version: 1.1 */

/* ===== MAIN LAYOUT ===== */
.listing-single {
    padding: 0 0 70px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    position: relative;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap:    var(--spacing);
}

/* ===== IMAGE GALLERY ===== */
.image-gallery-card {
    position: relative;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.image-gallery-card .title-section {
    flex: 1;
}

.image-gallery-card .listing-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-gallery-card .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 12px;
}

.image-gallery-card .meta-item svg {
    color: #9ca3af;
}

.image-gallery-card .listing-price-section {
    text-align: right;
}

.image-gallery-card .price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.image-gallery-card .price-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.image-gallery-card .price-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: calc(var(--spacing));
}

.image-gallery-card .favorite-link {
    display: inline-flex;
    align-items: center;
    gap: 0.50rem;
    color: #0b5b36;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.image-gallery-card .favorite-link.favorited {
    color: #0b5b36;
}

.image-gallery-card .action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0b5b36;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.image-gallery-card .action-link:hover {
    color: #374151;
    text-decoration: underline;
}

.main-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f8fafc;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #ecf0f6;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

/* ===== NAVIGATION CONTROLS ===== */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
    padding: 0px;
}

.nav-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

.nav-left {
    left: 16px;
}

.nav-right {
    right: 16px;
}

/* ===== FULLSCREEN BUTTON ===== */
.fullscreen-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    min-height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0px;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.fullscreen-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* ===== IMAGE COUNTER ===== */
.image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    z-index: 5;
}

.thumbnail-carousel {
    padding: var(--spacing) 0 0 0;
    background: white;
}

.thumbnail-container {
    display: flex;
    gap: var(--spacing);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    flex-wrap: wrap;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: var(--spacing);
    margin: var(--spacing) 0 0 0;
    background: white;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ecf0f7;
    transition: all 0.2s ease;
    position: relative;
}

.thumbnail:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail img:hover {
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

/* ===== LISTING DETAILS ===== */
.listing-details {
    padding: 0px;
    background: transparent !important;
}

.listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing);
}

.title-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--spacing);
    margin-bottom: 0px;
}

.title-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    margin-bottom: var(--spacing);
}

.listing-title {
    font-size: calc(var(--text-size) * 1.8);
    font-weight: 600;
    background: linear-gradient(135deg, #0b5b36 0%, #c9a037 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0px;
}

.listing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 75px;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.sale-badge {
    color: white;
    background: linear-gradient(135deg, rgb(16, 185, 129) 0%, rgb(5, 150, 105) 100%);
}

.stud-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
}

.wanted-badge {
    background: #fee2e2;
    color: #dc2626;
}

.featured-badge {
    background: linear-gradient(135deg, #166534 0%, #c9a037 100%);
    color: white;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing);
}

.meta-item {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== PRICE SECTION ===== */
.listing-price-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-amount {
    color: #0b5b36;
    font-size: calc(var(--text-size) * 1.8);
    font-family: var(--font-family-secondary);
    font-weight: 600;
}

.price-note {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.price-actions {
    display: flex;
    gap: 12px;
}

.favorite-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.share-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* ===== INFORMATION SECTIONS ===== */
.detailed-info,
.health-documentation,
.listing-features,
.contact-information {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.detailed-info h3,
.health-documentation h3,
.listing-description h3,
.listing-features h3,
.contact-information h3,
.breed-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing);
    color: var(--color-gray-800);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detailed-info .info-item {
    font-size: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: var(--spacing);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.info-label {
    font-weight: 400;
}

.info-value {
    color: #166534;
    font-weight: 600;
    font-size: 0.9rem;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing);
}

.health-documentation .health-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: var(--spacing);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.health-documentation .health-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #f3f4f6 transparent transparent;
}

.health-documentation .health-value.yes {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: var(--radius);
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-transform: capitalize;
}

.health-documentation .health-value.no {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: var(--radius);
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-transform: capitalize;
}


.health-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.health-value {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-value.yes {
    background: #dcfce7;
    color: #166534;
}

.health-value.no {
    background: #fee2e2;
    color: #dc2626;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #166534;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 2px;
    display: block;
}

.feature-value {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ===== LIST STYLES ===== */

.listing-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

.listing-main .card {
    margin: 0px;
}

.details-list,
.health-list,
.features-list,
.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Detail item with icon structure */
.details-list li,
.health-list li {
    display: flex;
    align-items: center;
    gap: 5px;
    width: calc(50% - 2.5px);
}

.detail-icon svg {
    fill: #aaa;
    display: block;
    height: 20px;
    width: 20px;
}

.detail-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}

.detail-content strong {
    color: #000;
    font-weight: 600;
}

/* Details Grid Layout */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing) - 12px) var(--spacing);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing) * 0.25);
}

/* Details Section Styling */
.details-section {
    margin-bottom: calc(var(--spacing) * 1.5);
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: var(--spacing);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    flex-shrink: 0;
}

.detail-icon {
    width: 18px;
    height: 18px;
    color: #166534;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #64748b;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #1e293b;
    line-height: 1.4;
}

/* Special styling for contact items */
.contact-list li {
    background: linear-gradient(135deg, #fef3c7 0%, #fef7cd 100%);
    border-color: #fde68a;
}

.contact-list li strong {
    color: #92400e;
}

.contact-list li a {
    color: #166534;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-list li a:hover {
    color: #15803d;
    text-decoration: underline;
}

/* ===== BREED INFO ===== */
.breed-card {
    display: flex;
    gap: calc(var(--spacing) * 2);
    padding: calc(var(--spacing) * 2);
    background: linear-gradient(135deg, #f0fdf4 0%, #fef3c7 100%);
    border-radius: var(--radius);
    border: 1px solid #dcfce7;
}

.breed-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
}

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

.breed-content {
    padding: 0px;
    gap: calc(var(--spacing) - 10px);
}

.breed-name {
    font-size: var(--text-size);
    font-family: var(--font-family-primary);
    font-weight: 500;
    line-height: var(--line-height);
    color: #000;
    letter-spacing: calc(var(--letter-spacing) - .5);
    margin: 0;
}

.breed-description {
    color: #6b7280;
    line-height: 1.6;
    margin: 0px;
}

.breed-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breed-link:hover {
    color: #15803d;
}

/* ===== SIDEBAR ===== */
.listing-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

@media (min-width: 992px) {
    .listing-sidebar {
        position: sticky;
        top: 6rem;
        height: fit-content;
    }
}

.action-card {
    background: white;
    border-radius: var(--radius);
    padding: var(--spacing);
    box-shadow: var(--shadow);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}



.contact-card {
    margin: 0px;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0b5b36 0%, #c9a037 50%, #0b5b36 100%);
}


/* 6. Buyer's Checklist Card - Safety Style */
.buyers-checklist {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.buyers-checklist::before {
    content: '⚠️';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: var(--text-size);
    opacity: 0.3;
}

.buyers-checklist:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.3);
    border-color: #f59e0b;
}

.buyers-checklist h4 {
    color: #92400e;
    font-weight: var(--font-weight);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.buyers-checklist li {
    color: #92400e;
    font-size: var(--text-size);
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    font-weight: var(--font-weight);
    line-height: var(--line-height);
}

.buyers-checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a037;
    font-weight: var(--font-weight);
    background: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.contact-header {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(135deg, #166534 0%, #c9a037 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar-icon {
    width: 50px;
    height: 50px;
    color: white;
}

.contact-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: start;
    margin-bottom: 0px;
}

.seller-name-link {
    color: #0A5B35;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.seller-name-link:hover {
    color: #0d7345;
    text-decoration: underline;
}

.seller-name-link:after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230A5B35'%3E%3Cpath fill-rule='evenodd' d='M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.seller-name-link:hover:after {
    opacity: 1;
    transform: translateX(2px);
}

.contact-location {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.contact-info {
    padding: var(--spacing) 0 0 0;
    border-top: 1px solid #e5e7eb;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.info-row svg {
    color: #166534;
    flex-shrink: 0;
}

.info-row span {
    color: #374151;
    font-weight: 500;
}

/* ===== SELLER COMPACT INFO ===== */
.seller-info-compact {
    background: white;
    padding: 0;
}

.info-row-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: #374151;
    font-size: 12px;
    line-height: 1.5;
}

.info-icon-green {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #166534;
}

.text-green {
    color: #166534;
    font-weight: 500;
}

/* ===== RATING SECTION ===== */
.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--spacing) 0;
}

.rating-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

.review-link {
    color: #166534;
    text-decoration: underline;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-icon-small {
    width: 14px;
    height: 14px;
    color: #166534;
    margin-left: 4px;
}

/* ===== VERIFICATION SECTION ===== */
.verification-section {
    padding: 0 0 var(--spacing) 0;
}

.verification-label {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.verification-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 0.8125rem;
}

.check-icon {
    width: 14px;
    height: 14px;
    color: #166534;
    flex-shrink: 0;
}

/* ===== SELLER ACTIONS ===== */
.seller-actions {
    padding-bottom: 12px;
    border-top: 1px solid #e5e7eb;
}

.view-adverts-btn {
    gap: 0.5rem;
    width: 100%;
    background: white;
    border: 1px solid #166534;
    color: #166534;
}

.view-adverts-btn svg {
    flex-shrink: 0;
}

.view-adverts-btn:hover {
    color: white;
}

.report-advert-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.report-advert-link:hover {
    color: #b91c1c;
}

.warning-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-btn.primary {
    background: linear-gradient(135deg, #166534 0%, #c9a037 100%);
    color: white;
}

.contact-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.contact-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.contact-btn.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== COMPACT SAFETY TIPS ===== */
.safety-tips-compact {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--radius);
    padding: var(--spacing);
    transition: all 0.3s ease;
}

.safety-compact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.safety-compact-header h4 {
    color: #92400e;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: var(--letter-spacing);
}

.safety-compact-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.safety-compact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.safety-compact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.2s ease;
}

.safety-compact-item::before {
    content: "✓";
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.safety-compact-text {
    font-size: 14px;
    font-weight: 400;
    color: #92400e;
    line-height: 1.3;
}

.safety-compact-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.safety-compact-link {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #92400e;
}

.safety-compact-link:hover {
    color: #78350f;
    text-decoration: underline;
}

/* Mobile responsive for compact safety tips */
@media (max-width: 768px) {
    .safety-tips-compact {
        padding: 16px;
        margin-bottom: 1.5rem;
    }

    .safety-compact-content {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .safety-compact-item {
        padding: 6px 10px;
    }

    .safety-compact-text {
        font-size: 0.8125rem;
    }

    .safety-compact-header h4 {
        font-size: 0.9rem;
    }
}

/* ===== REPORT SECTION ===== */
.report-section {
    text-align: center;
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
}

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.image-modal-content {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.message-modal-content {
    width: 500px;
    max-width: 90vw;
}

.modal-header {
    padding: 24px 24px 0;
}

.modal-title {
    font-size: var(--text-size);
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-align: center;
    line-height: var(--line-height);
    margin: 0;
}

.modal-subtitle {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.modal-body {
    padding: 24px;
}

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

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 0 24px 24px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #16a34a;
}

.notification.success .notification-content {
    border-left-color: #16a34a;
}

.notification.error .notification-content {
    border-left-color: #dc2626;
}

.notification.info .notification-content {
    border-left-color: #3b82f6;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #374151;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .listing-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .listing-single {
        padding: 0 0 2rem 0;
    }

    .listing-title {
        font-size: 24px;
    }

    .listing-main .card {
        display: flex;
        flex-direction: column;
        gap: var(--spacing);
    }

    .main-image-container {
        height: 300px;
        order: -1; /* Make main image container appear first on mobile */
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }

    .thumbnail-carousel {
        display: none;
    }

    .action-buttons {
        flex-direction: column;
    }

    .contact-actions {
        gap: 8px;
    }

    .breed-card {
        flex-direction: column;
        text-align: center;
    }

    .breed-image {
        margin: 0 auto;
    }

    .info-grid,
    .health-grid,
    .features-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-icon {
        width: 20px;
        height: 20px;
    }

    .seller-info-compact {
        padding: 0;
    }

    .info-row-compact {
        padding: 4px 0;
        font-size: 0.8125rem;
    }

    .info-icon-green {
        width: 14px;
        height: 14px;
    }

    .rating-section {
        padding: 8px 0;
        margin: 6px 0;
    }

    .rating-score {
        font-size: 1.1rem;
    }

    .star {
        width: 16px;
        height: 16px;
    }

    .verification-items {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .view-adverts-btn {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    .image-gallery-card .listing-title {
        font-size: 1.25rem;
        margin: 0;
    }

    .image-gallery-card .listing-price-section {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
    }

    .image-gallery-card .price-amount {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    .image-gallery-card .listing-meta {
        gap: 0.75rem;
    }

    .image-gallery-card .price-action-buttons {
        margin: 0;
        gap: var(--spacing);
    }

    .image-gallery-card .favorite-link,
    .image-gallery-card .action-link {
        font-size: 0.8125rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .title-meta {
        margin: 0px;
    }

    .listing-header {
        margin: 0px;
        flex-direction: column;
        gap: var(--spacing);
    }

    .card h3 {
        margin: 0px;
    }
}

/* ===== ONLINE STATUS STYLES ===== */
.contact-status-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.contact-status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6), 0 0 0 2px white;
    animation: pulse 2s infinite;
}

.contact-status-dot.away {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5), 0 0 0 2px white;
}

.contact-status-dot.offline {
    background-color: #6b7280;
    box-shadow: 0 0 0 2px white;
}

.contact-info-wrapper {
    flex: 1;
    margin-left: 0px;
}

.contact-name-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.contact-online-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 11px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-text.online {
    color: #059669;
}

.status-text.away {
    color: #d97706;
}

.status-text.offline {
    color: #6b7280;
}

.status-text::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-text.online::before {
    background-color: #10b981;
    animation: pulse 2s infinite;
}

.status-text.away::before {
    background-color: #f59e0b;
}

.status-text.offline::before {
    background-color: #6b7280;
}

/* Update contact-header flex layout */
.contact-header {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    margin-bottom: var(--spacing);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.default-avatar-icon {
    width: 28px;
    height: 28px;
    color: white;
}

/* ===== MOBILE MESSAGE BUTTON ===== */
.mobile-message-button {
    display: none; /* Hidden by default on desktop */
    margin-top: 1rem;
}

.btn-mobile-message {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0px auto;
}

.btn-mobile-message:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-mobile-message svg {
    width: 18px;
    height: 18px;
}

/* Show mobile message button only on mobile devices */
@media (max-width: 768px) {
    .mobile-message-button {
        display: block;
    }
}
