/* ========================================
   COMPONENTS V2 - Modular BEM Components
   ======================================== */

/* ========== HEADER COMPONENT ========== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    /* box-shadow removed per design */
}

.header__container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    height: 2.75rem;
}

.header__logo-img {
    height: 100%;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header__nav-link {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-black);
    padding: 8px 16px; /* Fixed px for button-like nav links */
    border-radius: 0.25rem;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--color-primary);
    background: rgba(244, 80, 0, 0.05);
}

.header__lang {
    display: flex;
    align-items: center;
}

.header__lang-flag {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
    transition: transform var(--transition-speed);
    object-fit: contain;
}

.header__lang-flag:hover {
    transform: scale(1.1);
}

/* White variant for hero sections */
.header--white {
    background: transparent;
    /* box-shadow removed per design */
}

.header--white .header__nav-link {
    color: var(--color-white);
}

.header--white .header__nav-link:hover,
.header--white .header__nav-link--active {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ========== VEHICLE CARD COMPONENT ========== */
.vehicle-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    /* box-shadow removed per design */
    overflow: hidden;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-0.25rem);
    /* box-shadow removed per design */
}

.vehicle-card__header {
    padding: 1.25rem;
    text-align: center;
}

.vehicle-card__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-black);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance;
}

.vehicle-card__brand {
    display: inline-block;
    padding: 4px 12px; /* Fixed px for badge/pill design */
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-card__brand--renault {
    background: var(--color-black);
    color: var(--color-white);
}

.vehicle-card__brand--dacia {
    background: var(--color-primary);
    color: var(--color-white);
}

.vehicle-card__seats {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Force 7-places cards to start on new row */
.vehicle-card--seven-seats:first-of-type {
    grid-column: 1;
}

.vehicle-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 12rem;
    background: var(--color-bg-light);
    overflow: hidden;
}

.vehicle-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.vehicle-card:hover .vehicle-card__image {
    transform: scale(1.05);
}

.vehicle-card__gallery {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.25rem;
}

.vehicle-card__details {
    padding: 1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 6rem;
}

.vehicle-card__price {
    margin-bottom: 0.5rem;
}

.vehicle-card__price-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-right: 0.25rem;
}

.vehicle-card__price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.vehicle-card__specs {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.vehicle-card__footer {
    padding: 0 1.25rem 1.25rem;
}

/* ========== BUTTON COMPONENT ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 32px; /* Reduced top/bottom padding by 50% */
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-speed);
    min-height: 44px; /* Fixed height for consistency */
    max-width: 16.875rem; /* 270px converted to REM */
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: #E04000;
    transform: translateY(-0.0625rem);
    /* box-shadow removed per design */
}

.btn--secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 0.125rem solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-black);
    border: none;
}

.btn--white:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn--full-width {
    width: 100%;
}

.btn--large {
    padding: 16px 48px; /* Fixed px for large buttons */
    font-size: 1.125rem;
}

/* ========== FORM COMPONENTS ========== */
.form-group {
    margin-bottom: 1.25rem;
}

/* ========== DATE PICKER COMPONENT ========== */
/* Unified date picker with "from" and "to" fields */
.date-picker {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--color-white);
    border: 0.0625rem solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 17.5rem;
    height: 2.5rem;
}

.date-picker:hover {
    border-color: var(--color-primary);
}

.date-picker:focus-within,
.date-picker.active {
    border-color: var(--color-primary);
    background: rgba(244, 80, 0, 0.05);
    outline: none;
}

.date-picker.filled {
    background: var(--color-white);
    border-color: var(--color-primary);
}

/* Date field wrappers */
.date-field {
    flex: 1;
    position: relative;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.date-field:first-child {
    padding-right: 0.5rem;
}

.date-field:last-of-type {
    padding-left: 0.5rem;
}

/* Date inputs */
.date-input {
    border: none;
    background: transparent;
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1.25;
}

.date-input::placeholder {
    color: #B3B3B3;
    font-weight: 400;
}

.date-input:focus {
    outline: none;
}

.date-picker.filled .date-input {
    color: var(--color-text);
    font-weight: 400;
}

/* Divider between dates */
.date-divider {
    width: 0.0625rem;
    height: 1.25rem;
    background: #E5E7EB;
    margin: 0;
}

.date-picker.active .date-divider,
.date-picker.filled .date-divider {
    background: var(--color-primary);
}

/* Calendar icon */
.date-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
    width: 1.25rem;
    height: 1.25rem;
}

.date-picker.active .date-icon,
.date-picker.filled .date-icon {
    color: var(--color-primary);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 8px 16px; /* Adjusted for 40px total height */
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--color-white);
    transition: all var(--transition-speed);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    /* box-shadow removed per design */
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-input--date {
    padding-right: 12px; /* Fixed px */
}

.form-textarea {
    min-height: 6rem;
    resize: vertical;
}

.form-checkbox-group,
.form-radio-group {
    margin-bottom: 1.25rem;
}

.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.form-checkbox__input,
.form-radio__input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-primary);
}

.form-checkbox__label,
.form-radio__label {
    flex: 1;
    font-size: 1rem;
}

.form-checkbox__price {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.search-form {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.search-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-form__actions {
    text-align: center;
}

/* ========== FOOTER COMPONENT ========== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    margin-top: 4rem;
}

.footer__container {
    width: var(--container-width);
    margin: 0 auto;
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.footer__logo {
    height: 3rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer__description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color var(--transition-speed);
}

.footer__link:hover {
    color: var(--color-primary);
}

.footer__address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 3rem;
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer__legal-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-speed);
}

.footer__legal-link:hover {
    color: var(--color-white);
}

.footer__separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}