/* Professional Pricing Display Styles - Danish Brand Colors */

/* Main Container */
.al-pricing-professional {
    margin: 0 0;
    position: relative;
}

/* Condition Badge */
.pricing-condition-badge {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-condition-badge .condition-text {
    display: inline-block;
    background: #BA910E;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Cards Container */
.pricing-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Base Pricing Card */
.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(42, 42, 42, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #f5f5f5;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(42, 42, 42, 0.15);
}

/* Cash Pricing Card */
.cash-pricing-card {
    border-color: #f5f5f5;
}

.cash-pricing-card:hover {
    border-color: #BA910E;
}

/* Lease Pricing Card */
.lease-pricing-card {
    border-color: #f5f5f5;
}

.lease-pricing-card.featured {
    border-color: #BA910E;
    transform: scale(1.02);
}

.lease-pricing-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

/* Popular Choice Ribbon */
.pricing-card-ribbon {
    position: absolute;
    top: 25px;
    right: -45px;
    background: #BA910E;
    color: white;
    padding: 8px 40px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(186, 145, 14, 0.3);
    z-index: 1;
}

/* Card Header */
.pricing-card-header {
    padding: 25px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.pricing-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cash-badge {
    color: #2a2a2a;
}

.lease-badge {
    color: #2a2a2a;
}

/* Card Body */
.pricing-card-body {
    padding: 30px;
}

.pricing-main-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.pricing-main-amount {
    font-size: 18px;
}

.pricing-main-amount .price-amount {
    font-size: 32px;
}

.pricing-period {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.pricing-description {
    color: #666;
    font-size: 16px;
}

/* Lease Terms List */
.lease-terms-list {
    list-style: none !important;
    padding: 15px 20px;
    margin: 0 0 25px 0;
    background: #f9f9f9;
    border-radius: 8px;
}

.lease-terms-list li {
    list-style: none !important;
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    padding-left: 0;
}

.lease-terms-list li:last-child {
    margin-bottom: 0;
}

.lease-terms-list li::before {
    content: none !important;
}

.lease-value {
    font-size: 14px;
    font-weight: 400;
}

/* Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0px 0;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.check-icon {
    color: #BA910E;
    font-weight: bold;
    font-size: 16px;
}

/* Card Footer */
.pricing-card-footer {
    padding: 25px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Action Buttons */
.pricing-action-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.cash-action-btn {
    background: #BA910E;
    color: white;
}

.cash-action-btn:hover {
    background: #a07e0c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(186, 145, 14, 0.3);
}

.lease-action-btn {
    background: #2a2a2a;
    color: white;
    margin-bottom: 10px;
}

.lease-action-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 42, 42, 0.3);
}

.lease-calculator-btn-link {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #BA910E;
    color: #BA910E;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lease-calculator-btn-link:hover {
    background: #BA910E;
    color: white;
}

/* Disabled State */
.pricing-card.disabled {
    opacity: 0.7;
}

.pricing-not-available {
    text-align: center;
    padding: 40px 20px;
}

.pricing-not-available p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.na-hint {
    font-size: 14px;
    color: #999;
}

.disabled-btn {
    background: #ccc;
    cursor: not-allowed;
}

/* Services Box */
.services-box {
    background: white;
    border: 2px solid #BA910E;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(186, 145, 14, 0.1);
}

/* Content area layout - side by side */
.content {
    display: grid!important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* Description column */
.content .description {
    grid-column: 1;
}

/* Services box column */
.content .services-box,
.content .services-box-simple {
    grid-column: 1 / -1;
    margin: 0;
    height: fit-content;
}

/* Other content items span full width */
.content > *:not(.description):not(.services-box):not(.services-box-simple) {
    grid-column: 1 / -1;
}

/* Simple Services Box */
.services-box-simple {
    border: 2px solid #BA910E;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.services-box-simple h4 {
    color: #2a2a2a;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.services-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.services-list li {
    list-style: none !important;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-list .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    flex-shrink: 0;
}

.services-list li::before {
    content: none !important;
}

.services-cta {
    margin: 15px 0 0 0;
    text-align: center;
}

.services-cta a {
    color: #BA910E;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.services-cta a:hover {
    color: #2a2a2a;
}

.services-header {
    background: linear-gradient(135deg, #BA910E 0%, #a07e0c 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.services-header h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
}

.services-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.services-content {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-item:nth-child(2) {
    border-bottom: none;
    padding-bottom: 0;
}

.service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-icon {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #BA910E;
}

.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-text strong {
    color: #2a2a2a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.service-text span {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.services-footer {
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.services-contact-btn {
    background: #2a2a2a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-contact-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 42, 42, 0.3);
}

/* Help Section - positioned after contact form */
.pricing-help-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    color: white;
    margin: 30px 0;
}

.help-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center;
}

.help-icon {
    font-size: 20px;
    font-style: normal;
    color: #BA910E;
}

.help-content span {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

.help-link {
    background-color: #fec701;
    font-weight: 600;
    font-size: 14px;
    color: #2a2a2a;
    padding: 7px 11px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.help-link:hover {
    background: #BA910E;
}

/* Old Styles - Kept for backwards compatibility */
.pricing-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pricing-container .price {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pricing-container .cash-price {
    background: #fff;
    border: 2px solid #BA910E;
}

.pricing-container .lease-price {
    background: #fff;
    border: 2px solid #2a2a2a;
}

.price-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.price-period {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.lease-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.lease-details span {
    display: block;
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Loop/Archive Pricing */
.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-wrapper .cash-price {
    font-size: 18px;
    font-weight: bold;
    color: #BA910E;
}

.price-wrapper .lease-price {
    font-size: 16px;
    color: #2a2a2a;
}

.price-wrapper .lease-price small {
    font-size: 12px;
    margin-left: 5px;
}

.lease-terms-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 5px;
}

.lease-terms-compact .lease-term {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

/* Listing items styling */
.auto-listings-items li .title a {
    color: #2a2a2a;
}

.auto-listings-items li .state {
    font-size: 18px;
}

/* Listing card improvements */
.auto-listings-items li {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auto-listings-items li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(42, 42, 42, 0.12);
    border-color: #BA910E;
}

.auto-listings-items li .image-slider-container {
    border-radius: 12px 12px 0 0;
}

.auto-listings-items li .summary {
    padding: 20px;
}

.auto-listings-items li .title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
}

.auto-listings-items li .price-wrapper {
    margin: 0 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.auto-listings-items li .price-wrapper .cash-price {
    display: block;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.auto-listings-items li .price-wrapper .lease-section {
    margin-top: 8px;
}

.auto-listings-items li .price-wrapper .lease-header {
    color: #2a2a2a;
    font-weight: 600;
    font-size: 14px;
}

.auto-listings-items li .price-wrapper .lease-price {
    display: block;
    margin-bottom: 4px;
}

.auto-listings-items li .description {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #2a2a2a;
}

.auto-listings-items li .description p {
    margin: 8px 0;
}

.auto-listings-items li .bottom-wrap {
    padding-top: 15px;
}

.auto-listings-items li .al-button {
    background: #ffc704;
    color: #2a2a2a;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.auto-listings-items li .al-button:hover {
    background: #ffc704;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(186, 145, 14, 0.3);
    color: #2a2a2a;
}

/* Image Slider Styles */
.image-slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-image.active {
    opacity: 1;
}

.slider-image:first-child {
    opacity: 1;
}

.slider-link {
    display: block;
    width: 100%;
    height: 100%;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 3;
}

.image-slider-container:hover .slider-prev,
.image-slider-container:hover .slider-next {
    opacity: 1;
}

.slider-prev:hover,
.slider-next:hover {
    background: #BA910E;
    color: white;
    transform: scale(1.1);
}

.slider-prev i,
.slider-next i {
    font-size: 14px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: #BA910E;
    transform: scale(1.2);
}

/* Hide navigation for single images */
.image-slider-container[data-total="1"] .slider-nav,
.image-slider-container[data-total="1"] .slider-dots {
    display: none;
}

/* Hide at-a-glance and address in listing items */
.auto-listings-items li .at-a-glance,
.auto-listings-items li .address {
    display: none;
}

/* Lease Calculator Button */
.lease-calculator-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #BA910E;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.lease-calculator-btn:hover {
    background: #a07e0c;
}

/* Lease Calculator Modal */
.lease-calculator-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 42, 0.8);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.lease-calculator-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.lease-calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.lease-calculator-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2a2a2a;
}

.lease-calculator-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lease-calculator-close:hover {
    color: #2a2a2a;
}

.lease-calculator-body {
    padding: 20px;
}

.lease-calculator-form {
    margin-bottom: 30px;
}

.calc-field {
    margin-bottom: 20px;
}

.calc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a2a2a;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: #BA910E;
}

.calc-field input[type="number"] {
    -moz-appearance: textfield;
}

.calc-field input[type="number"]::-webkit-outer-spin-button,
.calc-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-suffix {
    margin-left: 8px;
    color: #666;
}

/* Calculator Results */
.lease-calculator-results {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #eee;
}

.lease-calculator-results h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2a2a2a;
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.calc-result:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    font-weight: 600;
    color: #666;
}

.result-value {
    font-size: 20px;
    font-weight: bold;
    color: #2a2a2a;
}

#calc-monthly-result {
    color: #BA910E;
}

/* Responsive Design */
@media (max-width: 992px) {
    .pricing-options-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lease-pricing-card.featured {
        transform: scale(1);
    }
    
    .lease-pricing-card.featured:hover {
        transform: translateY(-3px);
    }
    
    .pricing-card-ribbon {
        right: -25px;
        padding: 6px 35px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
    }
    
    .pricing-container .price {
        min-width: auto;
    }
    
    .lease-calculator-content {
        width: 95%;
        margin: 10px;
    }
    
    .pricing-main-amount {
        font-size: 32px;
    }
    
    .lease-terms-list {
        padding: 10px 15px;
    }
    
    .help-content {
        flex-direction: column;
        text-align: center;
    }
    
    .help-link {
        width: 100%;
        text-align: center;
    }
    
    .pricing-card {
        border-radius: 8px;
    }
    
    .pricing-card-body,
    .pricing-card-header,
    .pricing-card-footer {
        padding: 20px;
    }
    
    /* Services Box Mobile - Stack vertically */
    .services-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-item {
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 0;
    }
    
    .service-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Content area mobile - stack description and services vertically */
    .content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content .description,
    .content .services-box,
    .content .services-box-simple {
        grid-column: 1 / -1;
    }
    
    .content .services-box,
    .content .services-box-simple {
        margin: 20px 0;
    }
    
    /* Services list mobile - stack vertically */
    .services-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .services-list li {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .al-pricing-professional {
        margin: 20px 0;
    }
    
    .pricing-main-amount {
        font-size: 28px;
    }
    
    .pricing-period {
        font-size: 14px;
    }
    
    .pricing-action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pricing-condition-badge .condition-text {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    /* Services Box Mobile */
    .services-header h3 {
        font-size: 18px;
    }
    
    .services-content {
        padding: 20px;
    }
    
    .service-item {
        flex-direction: row;
        gap: 12px;
        padding: 12px 0;
    }
    
    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
        min-width: 35px;
    }
    
    .service-text strong {
        font-size: 15px;
    }
    
    .service-text span {
        font-size: 13px;
    }
    
    .services-contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}