/* Upwell Surf App Styles - Scoped to prevent WordPress theme conflicts */

/* App root defaults */
#upwellApp {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100%;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Reset and Base (scoped) */
#upwellApp * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
#upwellApp .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Headers */
#upwellApp .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#upwellApp h2 {
    color: #2563eb;
    margin-bottom: 10px;
}

/* Action Buttons */
#upwellApp .action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* General button styles (works outside #upwellApp) */
.btn,
.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn.primary,
.action-btn.primary {
    background: #2563eb;
    color: #fff;
}

.btn.primary:hover,
.action-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn.secondary,
.action-btn.secondary {
    background: #64748b;
    color: #fff;
}

.btn.secondary:hover,
.action-btn.secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn.danger,
.action-btn.danger,
.action-btn-small.danger {
    background: #dc2626;
    color: #fff;
}

.btn.danger:hover,
.action-btn.danger:hover,
.action-btn-small.danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Button styles scoped to #upwellApp */
#upwellApp .btn,
#upwellApp .action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

#upwellApp .btn.primary,
#upwellApp .action-btn.primary {
    background: #2563eb;
    color: #fff;
}

#upwellApp .btn.primary:hover,
#upwellApp .action-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#upwellApp .btn.secondary,
#upwellApp .action-btn.secondary {
    background: #64748b;
    color: #fff;
}

#upwellApp .btn.secondary:hover,
#upwellApp .action-btn.secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

#upwellApp .action-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forecast Section */
#upwellApp .forecast-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Storm Warning Banner */
#upwellApp .storm-warning-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    margin: 15px 0 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 2s infinite !important;
    /* Target 729 x 80 desktop size - force with !important to override WordPress themes */
    width: 729px !important;
    height: 80px !important;
    max-width: 729px !important;
    min-width: 729px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    min-height: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Responsive: on smaller screens, allow 100% width */
@media (max-width: 800px) {
    #upwellApp .storm-warning-banner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Ensure parent containers don't constrain banner */
#upwellApp .forecast-section,
#upwellApp {
    overflow-x: visible !important;
}

#upwellApp .storm-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

#upwellApp .storm-warning-content i {
    font-size: 24px;
    animation: shake 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

#upwellApp .forecast-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

#upwellApp select {
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
}

#upwellApp select:focus {
    border-color: #2563eb;
    outline: none;
}

/* Current Conditions */
#upwellApp .current-conditions {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#upwellApp .conditions-summary h3 {
    color: #2563eb;
    margin-bottom: 10px;
}

#upwellApp .conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

#upwellApp .condition-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#upwellApp .condition-value {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
}

#upwellApp .condition-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

/* Wave Height Colors */
#upwellApp .wave-height-1 { color: #10b981; }
#upwellApp .wave-height-2 { color: #3b82f6; }
#upwellApp .wave-height-3 { color: #f59e0b; }
#upwellApp .wave-height-4 { color: #ef4444; }
#upwellApp .wave-height-5 { color: #dc2626; }

/* Forecast List */
#upwellApp .forecast-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#upwellApp .forecast-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#upwellApp .forecast-date {
    display: flex;
    flex-direction: column;
}

#upwellApp .forecast-day {
    font-weight: bold;
    color: #2563eb;
}

#upwellApp .forecast-conditions {
    font-size: 14px;
    color: #64748b;
}

#upwellApp .forecast-temps {
    display: flex;
    gap: 10px;
    align-items: center;
}

#upwellApp .forecast-high {
    font-weight: bold;
    color: #ef4444;
}

#upwellApp .forecast-low {
    color: #64748b;
}

#upwellApp .forecast-waves {
    text-align: center;
}

#upwellApp .forecast-wave-height {
    font-weight: bold;
    font-size: 18px;
}

#upwellApp .forecast-wave-label {
    font-size: 12px;
    color: #64748b;
}

#upwellApp .forecast-wind {
    text-align: center;
}

#upwellApp .forecast-wind-speed {
    font-weight: bold;
}

#upwellApp .forecast-wind-direction {
    font-size: 12px;
    color: #64748b;
}

#upwellApp .forecast-water-temp {
    text-align: center;
}

#upwellApp .forecast-water-temp-value {
    font-weight: bold;
    font-size: 18px;
    color: #06b6d4;
}

#upwellApp .forecast-water-temp-label {
    font-size: 12px;
    color: #64748b;
}

#upwellApp .forecast-tide {
    text-align: center;
}

#upwellApp .forecast-tide-value {
    font-weight: bold;
    font-size: 18px;
    color: #8b5cf6;
}

#upwellApp .forecast-tide-label {
    font-size: 12px;
    color: #64748b;
}

/* Reports Section */
#upwellApp .reports-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#upwellApp .reports-list {
    display: grid;
    gap: 15px;
}

#upwellApp .report-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#upwellApp .report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#upwellApp .report-location {
    font-weight: bold;
    color: #2563eb;
}

#upwellApp .report-time {
    color: #64748b;
    font-size: 14px;
}

#upwellApp .report-conditions {
    margin: 10px 0;
    font-size: 16px;
}

#upwellApp .report-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

#upwellApp .report-image,
#upwellApp .report-video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

#upwellApp .report-image:hover,
#upwellApp .report-video:hover {
    transform: scale(1.02);
    border-color: #2563eb;
}

#upwellApp .report-image:active,
#upwellApp .report-video:active {
    transform: scale(0.98);
}

/* Comments Section */
#upwellApp .report-comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

#upwellApp .comments-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

#upwellApp .comment-item {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
}

#upwellApp .comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#upwellApp .comment-form-container {
    margin-top: 15px;
}

#upwellApp .comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#upwellApp .comment-input,
#upwellApp .comment-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

#upwellApp .comment-input:focus,
#upwellApp .comment-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#upwellApp .comment-textarea {
    min-height: 80px;
}

#upwellApp .btn-small {
    padding: 8px 16px;
    font-size: 13px;
    align-self: flex-start;
}

#upwellApp .action-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

#upwellApp .comment-count {
    font-weight: normal;
}

/* Share Modal Styles */
#shareModal .modal-content {
    max-width: 500px;
}

#shareModal .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Spots Section */
#upwellApp .spots-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#upwellApp .spots-list {
    display: grid;
    gap: 10px;
}

#upwellApp .spot-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#upwellApp .spot-name {
    font-weight: bold;
    color: #2563eb;
}

#upwellApp .spot-action {
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

#upwellApp .spot-action:hover {
    background: #1d4ed8;
}

/* Spot actions layout */
#upwellApp .spot-actions {
    display: flex;
    gap: 8px;
}

/* Anchor styled like button */
#upwellApp a.spot-action {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Surf Spots List (WordPress integration) */
#upwellApp .upwell-surf-spots-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#upwellApp .surf-spots-search-container {
    margin-bottom: 16px;
}

#upwellApp .surf-spots-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#upwellApp .surf-spots-search:focus {
    border-color: #2563eb;
}

#upwellApp .surf-spots-results {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

#upwellApp .surf-spots-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

#upwellApp .spot-list-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

#upwellApp .spot-list-item:hover {
    background-color: #f8fafc;
}

/* Modal Styles */
/* General modal styles (works outside #upwellApp) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

#upwellApp .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#upwellApp .modal.show {
    display: flex;
}

/* General modal-content styles (works outside #upwellApp) */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}

#upwellApp .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* General modal styles (works outside #upwellApp) */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 5px;
}

.close-btn:hover {
    color: #2563eb;
}

#upwellApp .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#upwellApp .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 5px;
}

#upwellApp .close-btn:hover {
    color: #2563eb;
}

/* Form Styles - General (works outside #upwellApp) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2563eb;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Form Styles - Scoped to #upwellApp */
#upwellApp .form-group {
    margin-bottom: 15px;
}

#upwellApp .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

#upwellApp .form-group input,
#upwellApp .form-group textarea,
#upwellApp .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#upwellApp .form-group input:focus,
#upwellApp .form-group textarea:focus,
#upwellApp .form-group select:focus {
    border-color: #2563eb;
    outline: none;
}

#upwellApp .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#upwellApp .form-note {
    margin: 8px 0 16px;
    font-size: 14px;
    color: #64748b;
}

/* File Upload */
#upwellApp .file-input-label {
    display: inline-block;
    padding: 10px 20px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    color: #64748b;
}

#upwellApp .file-input-label:hover {
    background: #e2e8f0;
    border-color: #2563eb;
    color: #2563eb;
}

#upwellApp .file-input-label i {
    margin-right: 8px;
}

#upwellApp input[type="file"] {
    display: none;
}

#upwellApp .image-preview {
    margin-top: 10px;
}

#upwellApp .image-preview img,
#upwellApp .image-preview video {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* Media Modal */
#upwellApp .media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#upwellApp .media-modal.show {
    display: flex;
}

#upwellApp .media-modal img,
#upwellApp .media-modal video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    cursor: zoom-in;
}

#upwellApp .media-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    cursor: pointer;
}

/* Toast Notifications */
#upwellApp .toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

#upwellApp .toast {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 10px;
    animation: upwell-slideIn 0.3s;
    border-left: 4px solid #2563eb;
}

#upwellApp .toast.success {
    border-left-color: #10b981;
}

#upwellApp .toast.error {
    border-left-color: #ef4444;
}

@keyframes upwell-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Chat Modal */
#upwellApp .chat-modal .modal-content {
    max-width: 600px;
}

#upwellApp .chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8fafc;
}

#upwellApp .message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

#upwellApp .message.user {
    background: #2563eb;
    color: #fff;
    margin-left: auto;
}

#upwellApp .message.system {
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-right: auto;
}

#upwellApp .message-content {
    margin-bottom: 5px;
}

#upwellApp .message-time {
    font-size: 12px;
    opacity: 0.7;
}

#upwellApp .chat-input {
    display: flex;
    gap: 10px;
}

#upwellApp .chat-input input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

#upwellApp .chat-input input:focus {
    border-color: #2563eb;
    outline: none;
}

#upwellApp .chat-input button {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

#upwellApp .chat-input button:hover {
    background: #1d4ed8;
}

/* Loading Spinner */
#upwellApp .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#upwellApp .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: upwell-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes upwell-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* S3 Status */
#upwellApp .admin-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#upwellApp .s3-status {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#upwellApp .s3-status.success {
    background: #d1fae5;
    color: #065f46;
}

#upwellApp .s3-status.error {
    background: #fee2e2;
    color: #991b1b;
}

#upwellApp .s3-test-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
}

#upwellApp .s3-test-message.success {
    background: #d1fae5;
    color: #065f46;
}

#upwellApp .s3-test-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    #upwellApp {
        padding: 10px;
        margin: 10px 0;
    }
    
    #upwellApp .forecast-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #upwellApp .action-buttons {
        flex-direction: column;
    }
    
    #upwellApp .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    #upwellApp .conditions-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    #upwellApp .forecast-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    #upwellApp select {
        min-width: auto;
        width: 100%;
    }
    
    #upwellApp .report-actions {
        flex-direction: column;
    }
    
    #upwellApp .action-btn-small {
        width: 100%;
        justify-content: center;
    }
}

/* Car Dealer Modal Styles */
#upwellApp .car-dealer-modal {
    max-width: 600px;
    width: 90%;
}

#upwellApp .car-dealer-content {
    padding: 20px;
}

#upwellApp .car-image-container {
    text-align: center;
    margin-bottom: 20px;
}

#upwellApp .car-image {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 3px solid #e5e7eb;
    object-fit: cover;
}

#upwellApp .car-details h3 {
    color: #2563eb;
    margin-bottom: 10px;
    font-size: 24px;
}

#upwellApp .car-details p {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 16px;
}

#upwellApp .car-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#upwellApp .car-features li {
    padding: 8px 0;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

#upwellApp .car-features li:last-child {
    border-bottom: none;
}

#upwellApp .car-price {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

#upwellApp .price-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

#upwellApp .price {
    font-size: 32px;
    font-weight: bold;
    display: block;
}

#upwellApp .advertisement-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

#upwellApp .advertisement-actions .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#upwellApp .advertisement-actions .btn.primary {
    background: #10b981;
    color: white;
    border: none;
}

#upwellApp .advertisement-actions .btn.primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

#upwellApp .advertisement-actions .btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
}

#upwellApp .advertisement-actions .btn.secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

#upwellApp .advertisement-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

#upwellApp .advertisement-note p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive design for car dealer modal */
@media (max-width: 768px) {
    #upwellApp .car-dealer-modal {
        width: 95%;
        margin: 10px;
    }
    
    #upwellApp .advertisement-actions {
        flex-direction: column;
    }
    
    #upwellApp .advertisement-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    #upwellApp .car-price {
        padding: 15px;
    }
    
    #upwellApp .price {
        font-size: 28px;
    }
}

/* Expedia Widget Styles */
.expedia-widget-section {
    margin: 20px 0 !important;
    padding: 20px !important;
    background-color: #f5f5f5 !important;
    border-radius: 8px !important;
    min-height: 200px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.eg-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 150px !important;
    width: 100% !important;
}

/* Expedia Forecast Button Styles */
.expedia-forecast-button {
    margin: 20px 0 !important;
    text-align: center !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #00a8e1 0%, #0077b6 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 168, 225, 0.3) !important;
}

.expedia-forecast-button a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 30px !important;
    background-color: white !important;
    color: #00a8e1 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.expedia-forecast-button a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    background-color: #f0f8ff !important;
}

.expedia-forecast-button a i {
    font-size: 18px !important;
}

.expedia-forecast-button a .fa-arrow-right {
    font-size: 14px !important;
}

/* Responsive styles for Expedia button */
@media (max-width: 768px) {
    .expedia-forecast-button {
        padding: 12px !important;
        margin: 15px 0 !important;
    }
    
    .expedia-forecast-button a {
        padding: 10px 20px !important;
        font-size: 14px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .expedia-forecast-button a span {
        width: 100% !important;
        text-align: center !important;
    }
}
