/* Resetting default margin and padding for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px;
}

header h1, header h3 {
    margin: 0;
    color: #fff;
}

/* Navigation styles */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: flex-start; /* Align items to the left */
    flex-wrap: wrap;
    gap: 10px;
}

nav ul li {
    display: inline-block;
    margin-right: 0;
}

nav ul li:first-child {
    margin-right: auto; /* Push logo to the left, other items to the right */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #555; /* More muted color */
    border: none;
    display: inline-block; /* Treat as buttons */
    white-space: nowrap;
}

nav ul li a:hover {
    color: #fff;
    background-color: #666; /* Lighten on hover */
}

nav ul li img {
    height: 60px;
    width: auto;
    display: block;
}

/* Search styles */
.search {
    background-color: #666;
    padding: 20px;
    text-align: center;
    font-weight: normal;
    color: #fff;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.search label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.search-item {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    box-sizing: border-box;
}

.search form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 5px auto;
}

.login {
    max-width: 200px;
}
select, input, button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

select, input {
    background-color: white;
    color: #333;
}

select:focus, input:focus {
    outline: none;
    border-color: #c9302c;
    box-shadow: 0 0 0 2px rgba(201, 48, 44, 0.1);
}

button {
    flex: 1 1 100%;
    max-width: 200px;
    margin: 10px auto;
    background-color: #c9302c;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #a02622;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.4);
}

@media (max-width: 1350px) {
    .search-item {
        flex: 1 1 100%;
    }
}

/* Main content styles */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 20px;
}

.menu {
    background-color: #3d3d3d;
    padding: 15px 30px;
    width: 100%;
    text-align: center;
    border-radius: 0;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: flex-start; /* Align items to the left */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* Vertically center the links */
    justify-content: flex-start; /* Align items to the left */
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.menu ul li {
    display: inline-block;
    margin-right: 0;
}

.menu ul li:first-child {
    margin-right: auto; /* Push logo to the left */
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #555;
    border: none;
    display: inline-block;
    white-space: nowrap;
}

.menu ul li a:hover {
    color: #fff;
    background-color: #666; /* Lighten on hover */
}

.menu ul li img {
    height: 60px;
    width: auto;
    display: block;
}

/* Google Translate Widget Styling */
#google_translate_element {
    display: none; /* Hide the default Google Translate widget */
}

#google_translate_element select {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#google_translate_element select:hover {
    background-color: #666;
}

/* Custom Translation Button and Dropdown */
.translation-wrapper {
    position: relative;
    display: inline-block;
}

#translation-button {
    background-color: #555;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

#translation-button:hover {
    background-color: #666;
}

#translation-button .lang-name {
    display: inline;
}

#language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    z-index: 1000;
    min-width: 200px;
}

.language-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

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

.language-item:hover {
    background-color: #f5f5f5;
}

.language-item .flag {
    font-size: 20px;
}

.language-item .lang-name {
    flex: 1;
}

.content {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.content h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.content p {
    margin-bottom: 10px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    border-radius: 10px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Buttons and interactions */
button, input[type="button"], input[type="submit"],
.logout-button, .logout-link, .place-bid, .add-to-favorites, .remove-from-favorites {
    background-color: #b91313;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover,
.logout-button:hover, .logout-link:hover, .place-bid:hover, .add-to-favorites:hover, .remove-from-favorites:hover {
    background-color: #8a0e0e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(185, 19, 19, 0.3);
}

.place-bid {
    background-color: #28a745;
    margin: 5px 2px;
}

.place-bid:hover {
    background-color: #218838;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.add-to-favorites {
    background-color: #007bff;
    margin: 5px 2px;
}

.add-to-favorites:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Countdown styles */
#countdown {
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}

/* Responsive styles for translation button */
@media screen and (max-width: 768px) {
    #translation-button .lang-name {
        display: none; /* Hide language name on mobile, show only flag */
    }
    
    #translation-button {
        padding: 12px 16px;
    }
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-radius: 5px;
}

/* Responsive table styles */
.responsive-table {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    text-align: center;
}

.responsive-table th, .responsive-table td {
    font-size: 0.8em;
    padding: 2px;
    text-align: center;
}

/* Image gallery */
.img-gallery {
    height: auto;
    max-width: 100%;
    border-radius: 10px;
}

.gallery {
    max-width: 100%; /* Ensure images fit the screen */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 10px auto; /* Center images */
}

/* Mobile-specific styles */
@media screen and (max-width: 1350px) {
    .hide-on-mobile {
        display: none;
    }

    body {
        margin: 0;
    }

    h1 {
        text-align: center;
    }

    .menu {
        padding: 10px;
        border-radius: 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 5px;
    }

    .menu ul li {
        margin-right: 0 !important;
        width: 100%;
    }

    .menu ul li:first-child {
        margin-right: 0 !important;
        text-align: center;
    }

    .menu ul li a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .search {
        border-radius: 8px;
        padding: 15px;
        width: 95%;
        margin: 10px auto;
    }

    .container {
        padding: 10px;
    }

    img:not(.gallery) {
        max-width: 100%;
        max-height: 30%;
        border-radius: 8px;
    }
    
    .offer {
        background: #fff;
        padding: 15px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .offer-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 10px;
        margin: 0 auto;
        max-width: 100%;
    }
}

/* Desktop-specific styles */
@media screen and (min-width: 1351px) {
    .offer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .offer {
        width: 23%;
        margin: 0;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .offer:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        border-color: #b91313;
    }

    img:not(.gallery) {
        max-width: 100%;
        border-radius: 8px;
    }
    .gallery {
        max-width: 100%; /* Ensure images fit the screen */
        height: auto; /* Maintain aspect ratio */
        display: block;
        margin: 10px auto; /* Center images */
    }
    
}

/* Offer card text styling */
.offer p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.offer p b {
    color: #333;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.offer p:first-of-type {
    margin-top: 10px;
}

/* Google Translate button styles */
.goog-te-menu-frame {
    display: none !important; /* Hide the Google Translate dropdown */
}

.goog-te-gadget {
    font-family: Arial, sans-serif;
}
.grecaptcha-badge { 
    visibility: hidden !important;
}

.pagination a {
    text-decoration: none;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #007bff;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pagination button {
    margin: 0 4px;
}

.pagination {
    text-align: center;
    padding: 20px 0;
}

.image-wrapper {
    position: relative;
    display: block;
    margin: 0 auto;
  }
  
  .image-wrapper img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  /* Kontener na strzałki */
  .image-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }
  
  /* Strzałki — faktyczne przyciski */
  .image-arrow {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
  }
  
  .image-arrow:hover {
    background-color: rgba(255, 0, 0, 0.8);
  }

  /* Image counter for list pages */
  .image-counter-list {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 0 10px;
    min-width: 60px;
    text-align: center;
  }
  
  @media (max-width: 600px) {
    .image-arrow {
      font-size: 18px;
      padding: 6px 10px;
    }
  }

/* Offer Detail Page Layout */
.offer-main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.offer-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.offer-detail-gallery {
    grid-column: 1;
    min-width: 0;
}

.detail-image-wrapper {
    position: relative;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.detail-main-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.detail-image-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.detail-image-arrow {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 32px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

.detail-image-arrow:hover {
    background-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.image-counter {
    color: #333;
    background-color: transparent;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.offer-detail-sidebar {
    grid-column: 2;
    min-width: 280px;
    max-width: 350px;
}

.sidebar-content {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
    text-align: center;
}

.countdown-box {
    background-color: #fff;
    border: 2px solid #b91313;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.countdown-box p {
    margin: 5px 0;
}

.countdown-timer {
    font-size: 1.4em;
    font-weight: bold;
    color: #b91313;
}

.sidebar-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.sidebar-info p {
    margin: 8px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-actions button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    margin: 0;
}

.share-btn {
    background-color: #4CAF50 !important;
}

.share-btn:hover {
    background-color: #45a049 !important;
}

.offer-details-main {
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile responsive */
@media screen and (max-width: 1024px) {
    .offer-detail-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 15px;
    }
    
    .offer-detail-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100%;
    }
    
    .offer-detail-sidebar {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar-content {
        position: static;
    }
    
    .detail-image-wrapper {
        min-height: 250px;
    }
    
    .detail-image-arrow {
        font-size: 24px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 600px) {
    .detail-image-wrapper {
        min-height: 200px;
    }
    
    .detail-image-arrow {
        font-size: 20px;
        padding: 8px 12px;
    }
    
    .sidebar-content {
        padding: 15px;
    }
}

/* Additional Details Section Styles */
.additional-details-container,
.vehicle-details-container,
.damage-visualization-container {
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.offer-details-main {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    clear: both;
    overflow-x: hidden;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    background: #fff;
    min-height: 50px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-item.highlight {
    background: #f7fafc;
}

.detail-label {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    font-size: 14px;
    border-right: 3px solid #e2e8f0;
}

.detail-value {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #2d3748;
    background: inherit;
    word-break: break-word;
    line-height: 1.4;
}

/* Style for missing data */
.detail-value:empty::after,
.detail-value[data-empty="true"]::after {
    content: "Brak danych";
    color: #a0aec0;
    font-style: italic;
}

/* Important details highlighting */
.detail-item:nth-child(3) .detail-label, /* Marka */
.detail-item:nth-child(4) .detail-label, /* Model */
.detail-item:nth-child(7) .detail-label, /* Pierwsza rejestracja */
.detail-item:nth-child(12) .detail-label { /* Przebieg */
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.detail-item:nth-child(3), /* Marka */
.detail-item:nth-child(4), /* Model */
.detail-item:nth-child(7), /* Pierwsza rejestracja */
.detail-item:nth-child(12) { /* Przebieg */
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
}

/* Financial details highlighting */
.detail-item:nth-child(14) .detail-label, /* Cena nowego */
.detail-item:nth-child(15) .detail-label, /* Wartość */
.detail-item:nth-child(16) .detail-label { /* Koszt naprawy */
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.detail-item:nth-child(14), /* Cena nowego */
.detail-item:nth-child(15), /* Wartość */
.detail-item:nth-child(16) { /* Koszt naprawy */
    background: #f0fff4;
    border-left: 4px solid #38a169;
}

/* Damage Visualization Styles */
.damage-visualization-container {
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
    display: block;
    clear: both;
}

.damage-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.damage-title {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.damage-diagram {
    padding: 30px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.damage-grid {
    display: grid;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.top-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 60px);
}

.side-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 40px 80px 40px;
}

.damage-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    color: #e53e3e;
    border: 2px solid #cbd5e0;
    transition: all 0.3s ease;
}

.damage-cell.car-image {
    background: #fff;
    border: 2px solid #4a5568;
    padding: 8px;
}

.car-diagram {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.translate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.translate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.translate-btn:active {
    transform: translateY(0);
}

.translate-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.translation-result {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.translation-label {
    font-weight: bold;
    color: #4a5568;
    font-size: 14px;
}

.close-translation {
    background: #f56565;
    color: white;
    border: none;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.close-translation:hover {
    background: #e53e3e;
}

.translation-content {
    color: #2d3748;
    line-height: 1.6;
}

.side-top, .side-bottom {
    grid-column: span 3;
}

.damage-cell:not(.car-image):not(:empty) {
    background: #fed7d7;
    border-color: #e53e3e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.no-damage-info {
    padding: 30px 20px;
    text-align: center;
    color: #718096;
    font-style: italic;
    background: #f8f9fa;
}

.detail-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.detail-title {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 3px solid #e2e8f0;
}

.detail-content {
    padding: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
}

.detail-content.defects {
    background: #fff5f5;
    border-left: 4px solid #f56565;
}

.detail-content.description {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
}

/* Format text within details */
.detail-content br {
    margin-bottom: 8px;
}

/* Style for bullet points (converted from dashes) */
.detail-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile responsiveness for additional details */
@media (max-width: 768px) {
    .additional-details-container,
    .vehicle-details-container,
    .damage-visualization-container {
        padding: 0 10px;
    }
    
    .offer-detail-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 15px;
        margin: 10px auto;
    }
    
    .offer-detail-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100%;
        min-width: auto;
    }
    
    .offer-detail-sidebar {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1px;
        width: 100%;
        max-width: 100%;
    }
    
    .detail-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .detail-label {
        flex: none;
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        padding: 12px 15px;
        font-size: 13px;
        border-radius: 0;
    }
    
    .detail-value {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .detail-title,
    .damage-title {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .detail-content {
        padding: 15px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Mobile damage visualization */
    .damage-diagram {
        padding: 20px 10px;
    }
    
    .damage-grid {
        max-width: 280px;
        gap: 6px;
    }
    
    .top-grid {
        grid-template-rows: repeat(3, 50px);
    }
    
    .side-grid {
        grid-template-rows: 30px 60px 30px;
    }
    
    .damage-cell {
        font-size: 16px;
    }
}
.skiptranslate { visibility: hidden !important; }