/*
Theme Name: Malen
Theme URI: https://themeholy.com/wordpress/malen/
Author: Themeholy
Author URI: https://themeholy.com/
Description: Malen - Car Repair and Services WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later 
License URI: LICENSE
Text Domain: malen
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

*/

/* CSS Pentru pag single-anunturi_auto.php */

.sm-single-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.sm-single-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.sm-single-price {
    font-size: 26px;
    font-weight: 700;
    color: #ff3c00;
}

.sm-single-main {
    display: flex;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* GALERIE */
.sm-gallery-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.sm-gallery-main img {
  width: 100%;
  height: auto;   
  display: block;
}

.sm-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sm-gallery-thumbs img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
}

.sm-gallery-thumbs img:hover,
.sm-gallery-thumbs img.active {
    opacity: 1;
    outline: 2px solid #ff3c00;
}

/* SIDEBAR */
.sm-single-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.sm-specs-highlight div {
    margin-bottom: 8px;
    font-size: 14px;
}

.sm-btn-full {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* DETALII */
.sm-single-details {
    margin-top: 40px;
}

.sm-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

.sm-spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.sm-spec-label {
    color: #666;
}

.sm-spec-section {
    margin-bottom: 30px;
}

.sm-spec-section h4 {
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 2px solid #ff3c00;
    display: inline-block;
    padding-bottom: 4px;
}

.sm-description {
    margin-top: 40px;
}

.sm-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* container */
.sm-description-box {
    position: relative;
    max-height: 220px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* expanded */
.sm-description-box.expanded {
    max-height: none;
}

/* fade */
.sm-description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
}

/* text */
.sm-desc-formatted p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.sm-desc-item {
    padding-left: 10px;
    margin-bottom: 6px;
    color: #333;
}

/* buton */
.sm-description-toggle {
    margin-top: 10px;
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-weight: 600;
}

.sm-description-content p {
    margin-bottom: 2px;
    line-height: 1;
    color: #444;
}

.sm-description-content br {
    display: none; /* elimină spațiile duble */
}

.sm-description-box {
    max-height: 220px;
    overflow: hidden;
    position: relative;
}

.sm-description-box.expanded {
    max-height: none;
    overflow: visible;   /* 🔥 CRITIC */
}

/* fade DOAR când NU e expanded */
.sm-description-box.expanded .sm-description-fade {
    display: none;
}


.sm-description-box,
.sm-description-content {
    height: auto !important;
    overflow: visible !important;
}

.sm-description-content{
    display:block;
    width: 100%;
}
/* Sectiune - Doresti un automobil similar? */
.sm-similar-cta {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
}

.sm-similar-cta-inner {
    background: #242931;
    color: #fff;
    padding: 32px 34px 36px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.sm-similar-cta h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
}

.sm-similar-cta p {
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: 24px;
}

.sm-similar-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sm-btn-similar {
    display: inline-block;
    background: #bd3a18;
    color: #fff !important;
    padding: 16px 26px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
}

.sm-btn-similar:hover {
    background: #a93215;
    color: #fff !important;
}

.sm-similar-note {
    color: #94a3b8;
}

.sm-similar-note strong {
    color: #cbd5e1;
}