/**
 * ONOC Dolibarr - Produktkarten Styles
 * Diese Datei wird automatisch vom [onoc_products] Shortcode geladen
 */

/* Grid Layout */
.onoc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
    max-width: 1200px;
}

/* Produktkarte */
.onoc-product-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.onoc-product-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.onoc-product-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Popular Badge */
.onoc-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Produktname */
.onoc-product-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 16px 0 8px;
}

/* Beschreibung */
.onoc-product-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    min-height: 40px;
}

/* Preis */
.onoc-product-price {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 4px;
}

.onoc-product-price span {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
}

.onoc-product-period {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
}

/* Features Liste */
.onoc-product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.onoc-product-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
}

.onoc-product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Auswählen Button */
.onoc-product-select-btn {
    width: 100%;
    padding: 14px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onoc-product-card:hover .onoc-product-select-btn,
.onoc-product-card.selected .onoc-product-select-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

/* Ausgewähltes Produkt Anzeige */
.onoc-selected-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 24px 0;
    max-width: 600px;
}

.onoc-selected-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
}

.onoc-selected-price {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
}

/* Formular Section */
.onoc-form-section {
    max-width: 600px;
    margin: 32px 0;
}

.onoc-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.onoc-form-section > p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Error Message */
.onoc-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .onoc-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .onoc-product-card {
        padding: 24px 20px;
    }
    
    .onoc-product-price {
        font-size: 36px;
    }
    
    .onoc-selected-product-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* =====================================================
   E-MAIL VERIFIZIERUNG MODAL
   ===================================================== */

/* Modal Overlay */
.onoc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: onocFadeIn 0.2s ease;
}

@keyframes onocFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Box */
.onoc-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 100%;
    animation: onocSlideUp 0.3s ease;
}

@keyframes onocSlideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.onoc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.onoc-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.onoc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.onoc-modal-close:hover {
    color: #374151;
}

/* Modal Body */
.onoc-modal-body {
    padding: 24px;
}

.onoc-modal-body p {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 15px;
}

.onoc-verification-email {
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px !important;
    text-align: center;
}

.onoc-verification-email strong {
    color: #1f2937;
    word-break: break-all;
}

/* Code Input */
.onoc-verification-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.onoc-verification-input:focus {
    border-color: #3b82f6;
}

.onoc-verification-input::placeholder {
    font-size: 14px;
    letter-spacing: normal;
    font-weight: 400;
    color: #9ca3af;
}

/* Modal Messages */
.onoc-modal-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.onoc-modal-message:not(:empty) {
    display: block;
}

.onoc-message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.onoc-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Modal Footer */
.onoc-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.onoc-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.onoc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.onoc-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.onoc-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
}

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

.onoc-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.onoc-btn-link {
    background: transparent;
    color: #6b7280;
    padding: 8px;
}

.onoc-btn-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .onoc-modal {
        margin: 10px;
    }
    
    .onoc-modal-header,
    .onoc-modal-body,
    .onoc-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .onoc-verification-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}

/* =====================================================
   PROPERTY TOUR - ERWEITERTE PRODUKTSEITE MIT TABS
   ===================================================== */

.onoc-property-tour {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Hero Bildergalerie */
.onoc-pt-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.onoc-pt-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Intro Text */
.onoc-pt-intro {
    margin-bottom: 48px;
}

.onoc-pt-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.onoc-pt-subtitle {
    font-size: 18px;
    font-style: italic;
    color: #6b7280;
    margin: 0 0 20px;
}

.onoc-pt-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Tabs Section */
.onoc-pt-tabs-section {
    margin-bottom: 48px;
}

.onoc-pt-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
}

/* Tab Navigation */
.onoc-pt-tab-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.onoc-pt-tab-btn {
    flex-shrink: 0;
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.onoc-pt-tab-btn:hover {
    color: #1f2937;
    background: #f9fafb;
}

.onoc-pt-tab-btn.active {
    color: #1f2937;
    border-bottom-color: #1f2937;
    font-weight: 600;
}

/* Tab Content */
.onoc-pt-tab-content {
    border: 1px solid #e5e7eb;
    border-top: none;
    padding: 24px;
    background: #ffffff;
}

.onoc-pt-tab-panel {
    display: none;
}

.onoc-pt-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.onoc-pt-tab-panel h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px;
}

/* Listen in Tabs */
.onoc-pt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onoc-pt-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

.onoc-pt-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1f2937;
    font-weight: bold;
}

/* Reiseverlauf / Itinerary */
.onoc-pt-itinerary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.onoc-pt-day {
    display: flex;
    gap: 16px;
}

.onoc-pt-day-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.onoc-pt-day-content {
    flex: 1;
}

.onoc-pt-day-content strong {
    display: block;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
}

.onoc-pt-day-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* Hotels */
.onoc-pt-intro-text {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 16px;
}

.onoc-pt-hotels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.onoc-pt-hotel {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onoc-pt-hotel-name {
    font-weight: 600;
    color: #1f2937;
}

.onoc-pt-stars {
    color: #f59e0b;
    margin-left: 8px;
    font-size: 12px;
}

.onoc-pt-hotel-location {
    font-size: 13px;
    color: #6b7280;
}

.onoc-pt-note {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin: 16px 0 0;
}

/* Booking Box */
.onoc-pt-booking-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
}

.onoc-pt-booking-left {
    flex: 1;
}

.onoc-pt-booking-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.onoc-pt-booking-date {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 8px;
}

.onoc-pt-partner-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.onoc-pt-booking-right {
    text-align: right;
    flex-shrink: 0;
}

.onoc-pt-price-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.onoc-pt-price {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.onoc-pt-price-note {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 16px;
}

.onoc-pt-cta-btn {
    display: inline-block;
    background: #dc6b4e;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.onoc-pt-cta-btn:hover {
    background: #c45a3f;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .onoc-pt-gallery {
        grid-template-columns: 1fr;
    }
    
    .onoc-pt-gallery-item img {
        height: 180px;
    }
    
    .onoc-pt-title {
        font-size: 24px;
    }
    
    .onoc-pt-tab-nav {
        gap: 0;
    }
    
    .onoc-pt-tab-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .onoc-pt-tab-content {
        padding: 16px;
    }
    
    .onoc-pt-booking-box {
        flex-direction: column;
        text-align: center;
    }
    
    .onoc-pt-booking-right {
        text-align: center;
        width: 100%;
    }
    
    .onoc-pt-cta-btn {
        width: 100%;
    }
    
    .onoc-pt-day {
        flex-direction: column;
        gap: 8px;
    }
    
    .onoc-pt-day-number {
        width: auto;
        height: auto;
        padding: 8px 12px;
        flex-direction: row;
        gap: 4px;
    }
    
    .onoc-pt-hotel {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
